Some tests, like the OpenID module's OpenIDRegistrationTestCase in openid.test, have only a simple function name in the result function property. So this line
list($class, $name) = explode('->', $result->function, 2);
produces the error

Notice: Undefined offset: 1 in simpletest_script_reporter_write_xml_results() (line 616 of /path/to/docroot/scripts/run-tests.sh).

Comments

brad.bulger created an issue. See original summary.

brad.bulger’s picture

StatusFileSize
new737 bytes

Of the variables being defined by that line of code, only one is used, and only in the subsequent line:
$case->setAttribute('name', $name);
So we can use an array variable instead of the list() assignment and avoid the error.

brad.bulger’s picture

Status: Active » Needs review

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.