function simpletest_phpunit_xml_filepath

Returns the path to use for PHPUnit's --log-junit option.

Parameters

$test_id: The current test ID.

Return value

string Path to the PHPUnit XML file to use for the current $test_id.

Deprecated

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

See also

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

2 calls to simpletest_phpunit_xml_filepath()
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…
SimpletestPhpunitRunCommandTest::testSimpletestPhpUnitRunCommand in core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php
Test the round trip for PHPUnit execution status codes.

File

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

Code

function simpletest_phpunit_xml_filepath($test_id) {
    $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::xmlLogFilepath() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
    return $runner->xmlLogFilePath($test_id);
}

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