Skip to content
Snippets Groups Projects
Commit c42d69a1 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 21d3d972
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment