From c65b3a048e705b2db855f05a62e44751327afb7b Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 2 Sep 2013 13:58:53 +0800 Subject: [PATCH] MDL-40676 tests: fix null byte test. --- lib/tests/configonlylib_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/configonlylib_test.php b/lib/tests/configonlylib_test.php index dc97baa84df..c56e4be4d78 100644 --- a/lib/tests/configonlylib_test.php +++ b/lib/tests/configonlylib_test.php @@ -44,7 +44,7 @@ class core_configonlylib_testcase extends advanced_testcase { */ public function test_min_fix_utf8() { $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("žlutý koníček přeskočil potůček \n\t\r", 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.'); }