Project

General

Profile

Bug #22202 » 13681_testcase.diff

Administrator Admin, 2010-03-26 12:57

View differences:

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', '');
(3-3/3)