MDL-76838 core: Add unit test for invalid unicode sequences

This commit is contained in:
Andrew Nicols
2023-06-08 11:59:10 +08:00
parent 7de0cb32d1
commit ce6658d2c8
+1
View File
@@ -179,6 +179,7 @@ class moodlelib_test extends \advanced_testcase {
// Invalid utf8 string.
$this->assertSame('aš', fix_utf8('a'.chr(130).'š'), 'This fails with buggy iconv() when mbstring extenstion is not available as fallback.');
$this->assertSame('Hello ', fix_utf8('Hello ￿'));
}
public function test_optional_param() {