Skip to content

Commit 706d78f

Browse files
author
Jeremy BENOIST
committed
Avoid a PHP Warning on setAttribute
This sometimes results in an error: PHP Warning: DOMElement::setAttribute(): string is not in UTF-8 in /var/www/projects/lib/vendor/lexpress/symfony1/lib/vendor/lime/lime.php on line 107
1 parent f2338ec commit 706d78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vendor/lime/lime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static public function to_xml($results = null)
104104
foreach ($result['tests'] as $test)
105105
{
106106
$testsuite->appendChild($testcase = $dom->createElement('testcase'));
107-
$testcase->setAttribute('name', $test['message']);
107+
$testcase->setAttribute('name', utf8_encode($test['message']));
108108
$testcase->setAttribute('file', $test['file']);
109109
$testcase->setAttribute('line', $test['line']);
110110
$testcase->setAttribute('assertions', 1);

0 commit comments

Comments
 (0)