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

This commit is contained in:
Andrew Nicols
2023-06-08 11:59:14 +08:00
parent 30add0c159
commit c8631653cd
+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() {