diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index 65c5a4c2fc..0e56f0566f 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -182,7 +182,7 @@ function simpletest_run_tests($test_list) { * {simpletest}'s schema. * * @deprecated in Drupal 8.5.x, will be removed before 9.0.0. Use - * Drupal\Core\Test\PhpUnitTestRunner::runTests(). + * \Drupal\Core\Test\PhpUnitTestRunner::runTests(). */ function simpletest_run_phpunit_tests($test_id, array $unescaped_test_classnames, &$status = NULL) { $runner = PhpUnitTestRunner::create(\Drupal::getContainer()); @@ -261,7 +261,7 @@ function simpletest_summarize_phpunit_result($results) { * Path to the PHPUnit XML file to use for the current $test_id. * * @deprecated in Drupal 8.5.x, will be removed before 9.0.0. Use - * Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilepath(). + * \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilepath(). */ function simpletest_phpunit_xml_filepath($test_id) { $runner = PhpUnitTestRunner::create(\Drupal::getContainer()); @@ -303,7 +303,7 @@ function simpletest_phpunit_configuration_filepath() { * The results as returned by exec(). * * @deprecated in Drupal 8.5.x, will be removed before 9.0.0. Use - * Drupal\Core\Test\PhpUnitTestRunner::runCommand(). + * \Drupal\Core\Test\PhpUnitTestRunner::runCommand(). */ function simpletest_phpunit_run_command(array $unescaped_test_classnames, $phpunit_file, &$status = NULL, &$output = NULL) { $runner = PhpUnitTestRunner::create(\Drupal::getContainer()); @@ -317,7 +317,7 @@ function simpletest_phpunit_run_command(array $unescaped_test_classnames, $phpun * The command that can be run through exec(). * * @deprecated in Drupal 8.5.x, will be removed before 9.0.0. Use - * Drupal\Core\Test\PhpUnitTestRunner::phpUnitCommand(). + * \Drupal\Core\Test\PhpUnitTestRunner::phpUnitCommand(). */ function simpletest_phpunit_command() { $runner = PhpUnitTestRunner::create(\Drupal::getContainer()); @@ -703,7 +703,7 @@ function simpletest_mail_alter(&$message) { * function will return NULL. * * @deprecated in Drupal 8.5.x, will be removed before 9.0.0. Use - * Drupal\Core\Test\JUnitConverter::xmlToRows(). + * \Drupal\Core\Test\JUnitConverter::xmlToRows(). */ function simpletest_phpunit_xml_to_rows($test_id, $phpunit_xml_file) { return JUnitConverter::xmlToRows($test_id, $phpunit_xml_file); @@ -721,7 +721,7 @@ function simpletest_phpunit_xml_to_rows($test_id, $phpunit_xml_file) { * A list of all test cases. * * @deprecated in Drupal 8.5.x, will be removed before 9.0.0. Use - * Drupal\Core\Test\JUnitConverter::findTestCases(). + * \Drupal\Core\Test\JUnitConverter::findTestCases(). */ function simpletest_phpunit_find_testcases(\SimpleXMLElement $element, \SimpleXMLElement $parent = NULL) { return JUnitConverter::findTestcases($element, $parent); @@ -739,7 +739,7 @@ function simpletest_phpunit_find_testcases(\SimpleXMLElement $element, \SimpleXM * An array containing the {simpletest} result row. * * @deprecated in Drupal 8.5.x, will be removed before 9.0.0. Use - * Drupal\Core\Test\JUnitConverter::testcaseToSimpletestRow(). + * \Drupal\Core\Test\JUnitConverter::testcaseToSimpletestRow(). */ function simpletest_phpunit_testcase_to_row($test_id, \SimpleXMLElement $testcase) { return JUnitConverter::testcaseToSimpletestRow($test_id, $testcase); diff --git a/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php b/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php index 1e0c0bfa42..fec92c6043 100644 --- a/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php +++ b/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php @@ -10,12 +10,12 @@ /** * Tests simpletest_run_phpunit_tests() handles PHPunit fatals correctly. * - * We don't extend Drupal\Tests\UnitTestCase here because its $root property is + * We don't extend \Drupal\Tests\UnitTestCase here because its $root property is * not static and we need it to be static here. * * The file simpletest_phpunit_run_command_test.php contains the test class - * Drupal\Tests\simpletest\Unit\SimpletestPhpunitRunCommandTestWillDie which can - * be made to exit with result code 2. It lives in a file which won't be + * \Drupal\Tests\simpletest\Unit\SimpletestPhpunitRunCommandTestWillDie which + * can be made to exit with result code 2. It lives in a file which won't be * autoloaded, so that it won't fail test runs. * * Here, we run SimpletestPhpunitRunCommandTestWillDie, make it die, and see