function simpletest_phpunit_testcase_to_row

Converts a PHPUnit test case result to a {simpletest} result row.

Parameters

int $test_id: The current test ID.

\SimpleXMLElement $test_case: The PHPUnit test case represented as XML element.

Return value

array An array containing the {simpletest} result row.

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::convertTestCaseToSimpletestRow() instead.

See also

https://www.drupal.org/node/2948547

1 call to simpletest_phpunit_testcase_to_row()
SimpletestDeprecationTest::testDeprecatedPhpUnitFunctions in core/modules/simpletest/tests/src/Kernel/SimpletestDeprecationTest.php
@expectedDeprecation simpletest_phpunit_xml_filepath is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilepath() instead. See https://www.drupal.org/node/2948547 @expectedDeprecation…

File

core/modules/simpletest/simpletest.module, line 738

Code

function simpletest_phpunit_testcase_to_row($test_id, \SimpleXMLElement $test_case) {
    @trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \\Drupal\\Core\\Test\\JUnitConverter::convertTestCaseToSimpletestRow() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
    return JUnitConverter::convertTestCaseToSimpletestRow($test_id, $test_case);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.