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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

brad.bulger created an issue. See original summary.

brad.bulger’s picture

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