Issue #3499596 by alexpott: run-tests.sh cannot handle unicode in PHPUnit output

merge-requests/10916/head
catch 2025-01-15 14:24:01 +00:00
parent 886ee4e355
commit 52fafcaad6
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ function simpletest_script_reporter_write_xml_results(TestRunResultsStorageInter
}
$test_class = $result->test_class;
if (!isset($xml_files[$test_class])) {
$doc = new DomDocument('1.0');
$doc = new DomDocument('1.0', 'utf-8');
$root = $doc->createElement('testsuite');
$root = $doc->appendChild($root);
$xml_files[$test_class] = ['doc' => $doc, 'suite' => $root];