Commit c42d69a1 authored by alexpott's avatar alexpott

Issue #2417727 by Berdir: Notice: Undefined offset: 1 in core/scripts/run-tests.sh on line 952

parent 21d3d972
......@@ -967,7 +967,12 @@ function simpletest_script_reporter_write_xml_results() {
// Create the XML element for this test case:
$case = $dom_document->createElement('testcase');
$case->setAttribute('classname', $test_class);
list($class, $name) = explode('->', $result->function, 2);
if (strpos($result->function, '->') !== FALSE) {
list($class, $name) = explode('->', $result->function, 2);
}
else {
$name = $result->function;
}
$case->setAttribute('name', $name);
// Passes get no further attention, but failures and exceptions get to add more detail:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment