Browse files

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

  • Loading branch information...
1 parent c1dc3a5 commit 1ed536f74d977fcd20571e84f6ddff2b96a40e01 @timhunt timhunt committed Jan 10, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 admin/report/unittest/ex_reporter.php
View
5 admin/report/unittest/ex_reporter.php
@@ -273,4 +273,9 @@ function _stripParameterFromUrl($url, $param) {
function get_string($identifier, $a = NULL) {
return get_string($identifier, 'simpletest', $a);
}
+
+ function _htmlEntities($message) {
+ // Override subclass message that breaks UTF8.
+ return s($message);
+ }
}

0 comments on commit 1ed536f

Please sign in to comment.