Пример #1
0
 /**
  * Checks if substr() can handle UTF8 strings, specifying no length
  *
  * @test
  */
 public function substrWorksWithUTF8CharactersSpecifyingNoLength()
 {
     $testString = 'Kasper Skårhøj implemented most versions of TYPO3.';
     $this->assertEquals('implemented most versions of TYPO3.', \TYPO3\FLOW3\Utility\Unicode\Functions::substr($testString, 15), 'substr() with UTF8 characters did not return the expected string after specifying no length.');
 }