Revert "[TASK] Improve performance of trimExplode"
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Utility / GeneralUtilityTest.php
index 46f70d4..7a010f1 100644 (file)
@@ -1305,26 +1305,6 @@ class GeneralUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->assertEquals($expectedArray, $actualArray);
        }
 
-       /**
-        * @test
-        */
-       public function checkTrimExplodeKeepsWhitespaceInsideElements() {
-               $testString = 'a , b , c , ,d ,, ,e,f, g h ,';
-               $expectedArray = array('a', 'b', 'c', 'd', 'e', 'f', 'g h');
-               $actualArray = Utility\GeneralUtility::trimExplode(',', $testString, TRUE);
-               $this->assertEquals($expectedArray, $actualArray);
-       }
-
-       /**
-        * @test
-        */
-       public function checkTrimExplodeCanUseInternalRegexDelimiterAsExplodeDelimiter() {
-               $testString = 'a / b / c / /d // /e/f/ g h /';
-               $expectedArray = array('a', 'b', 'c', 'd', 'e', 'f', 'g h');
-               $actualArray = Utility\GeneralUtility::trimExplode('/', $testString, TRUE);
-               $this->assertEquals($expectedArray, $actualArray);
-       }
-
        //////////////////////////////////
        // Tests concerning getBytesFromSizeMeasurement
        //////////////////////////////////