Follow-up to #12230: Add unit test to test tslib_cObj::crop() for multibyte compatibility
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 10 Feb 2011 20:03:19 +0000 (20:03 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 10 Feb 2011 20:03:19 +0000 (20:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10434 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
tests/typo3/sysext/cms/tslib/tslib_contentTest.php

index 389a522..6b77399 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2011-02-10  Christian Kuhn  <lolli@schwarzbu.ch>
 
+       * Follow-up to #12230: Add unit test to test tslib_cObj::crop() for multibyte compatibility
        * Fixed bug #12230: Function tslib_cObj::crop() is not fully multibyte safe (Thanks to Vladimir Podkovanov)
 
 2011-02-09  Steffen Kamper  <steffen@typo3.org>
index b9786f8..7758ed1 100644 (file)
@@ -374,6 +374,17 @@ class tslib_contentTest extends tx_phpunit_testcase {
        }
 
 
+       //////////////////////////////
+       // Tests concerning crop
+       //////////////////////////////
+
+       /**
+        * @test
+        */
+       public function cropIsMultibyteSafe() {
+               $this->assertEquals('бла', $this->cObj->crop('бла', '3|...'));
+       }
+
        //////////////////////////////
        // Tests concerning cropHTML
        //////////////////////////////