MDL-33007 fix incorrect min_fix_utf8() tests
authorPetr Skoda <commits@skodak.org>
Mon, 4 Jun 2012 08:45:13 +0000 (10:45 +0200)
committerPetr Skoda <commits@skodak.org>
Mon, 4 Jun 2012 08:45:44 +0000 (10:45 +0200)
Credit goest to Eloy Lafuente.

lib/tests/configonlylib_test.php

index 270ec1c..dc97baa 100644 (file)
@@ -43,9 +43,9 @@ class core_configonlylib_testcase extends advanced_testcase {
      * Test cleaning of invalid utf-8 entities.
      */
     public function test_min_fix_utf8() {
-        $this->assertSame('abc', fix_utf8('abc'));
-        $this->assertSame("žlutý koníček přeskočil potůček \n\t\r\0", fix_utf8("žlutý koníček přeskočil potůček \n\t\r\0"));
-        $this->assertSame('aš', fix_utf8('a'.chr(130).'š'), 'This fails with buggy iconv() when mbstring extenstion is not available as fallback.');
+        $this->assertSame('abc', min_fix_utf8('abc'));
+        $this->assertSame("žlutý koníček přeskočil potůček \n\t\r\0", min_fix_utf8("žlutý koníček přeskočil potůček \n\t\r\0"));
+        $this->assertSame('aš', min_fix_utf8('a'.chr(130).'š'), 'This fails with buggy iconv() when mbstring extenstion is not available as fallback.');
     }
 
     /**