Permalink
Browse files

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

  • Loading branch information...
1 parent f70f6e9 commit a364362b959b6a40e8c0242dec506d546b170ff0 @timhunt timhunt committed Jan 10, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 admin/tool/unittest/ex_reporter.php
@@ -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 a364362

Please sign in to comment.