Skip to content

Commit

Permalink
MDL-31100 unit tests: don't mangle UTF-8 in failure messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Jan 12, 2012
1 parent 60e9909 commit aad1b6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions admin/tool/unittest/ex_reporter.php
Expand Up @@ -289,4 +289,9 @@ function _stripParameterFromUrl($url, $param) {
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);
}
}

0 comments on commit aad1b6e

Please sign in to comment.