function simpletest_summarize_phpunit_result
Maps phpunit results to a data structure for batch messages and run-tests.sh.
Parameters
array $results: The output from simpletest_run_phpunit_tests().
Return value
array The test result summary. A row per test class.
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::summarizeResults() instead.
See also
https://www.drupal.org/node/2948547
1 call to simpletest_summarize_phpunit_result()
- 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 237
Code
function simpletest_summarize_phpunit_result($results) {
$runner = PhpUnitTestRunner::create(\Drupal::getContainer());
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \\Drupal\\Core\\Test\\PhpUnitTestRunner::summarizeResults() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return $runner->summarizeResults($results);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.