Created
August 14, 2013 16:07
-
-
Save danpoltawski/6232548 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/tests/text_test.php b/lib/tests/text_test.php | |
| index 1aa16f3..9281fe1 100644 | |
| --- a/lib/tests/text_test.php | |
| +++ b/lib/tests/text_test.php | |
| @@ -88,6 +88,9 @@ class core_text_testcase extends advanced_testcase { | |
| $this->assertSame($str, core_text::convert($utf8, 'utf-8', 'GB18030')); | |
| $this->assertSame($utf8, core_text::convert($str, 'GB18030', 'utf-8')); | |
| $this->assertSame($utf8, core_text::convert($utf8, 'utf-8', 'utf-8')); | |
| + | |
| + // Attempt to convert an invalid utf8 char. | |
| + $this->assertEmpty(core_text::convert(chr(130), 'UTF-8', 'ascii')); | |
| } | |
| /** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment