Bug #22202 » 13681_testcase.diff
tests/t3lib/t3lib_div_testcase.php (working copy) | ||
---|---|---|
/**
|
||
* @test
|
||
*/
|
||
public function checkRevExplodeCorrectlyExplodesString() {
|
||
$testString = 'my:words:here';
|
||
$expectedArray = array('my:words', 'here');
|
||
$actualArray = t3lib_div::revExplode(':', $testString, 2);
|
||
$this->assertEquals($expectedArray, $actualArray);
|
||
}
|
||
/**
|
||
* @test
|
||
*/
|
||
public function checkTrimExplodeTrimsSpacesAtElementStartAndEnd() {
|
||
$testString = ' a , b , c ,d ,, e,f,';
|
||
$expectedArray = array('a', 'b', 'c', 'd', '', 'e', 'f', '');
|
- « Previous
- 1
- 2
- 3
- Next »