MDL-31100 unit tests: don't mangle UTF-8 in failure messages.

This commit is contained in:
Tim Hunt 2012-01-10 13:59:40 +00:00
parent 60e99097e4
commit aad1b6ee64

View File

@ -289,4 +289,9 @@ class ExHtmlReporter extends HtmlReporter {
function get_string($identifier, $a = NULL) {
return get_string($identifier, 'tool_unittest', $a);
}
function _htmlEntities($message) {
// Override subclass message that breaks UTF8.
return s($message);
}
}