Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1ed536f74d977fcd20571e84f6ddff2b96a40e01 1 parent c1dc3a5
Tim Hunt timhunt authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 admin/report/unittest/ex_reporter.php
5 admin/report/unittest/ex_reporter.php
View
@@ -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);
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.