MDL-76838 core: Add unit test for invalid unicode sequences
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user