From dccab71eb97495370383d990004c0cfcba65de40 Mon Sep 17 00:00:00 2001 From: Chris McCafferty Date: Wed, 26 Apr 2017 16:38:28 -0400 Subject: [PATCH] Issue #2798273 by Mile23, tar_inet: simpletest_phpunit_configuration_filepath() is dead code. Deprecate it --- core/modules/simpletest/simpletest.module | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index 8b1cc2398bf4484d..e5c67d3954238ad5 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -285,8 +285,15 @@ function simpletest_phpunit_xml_filepath($test_id) { * * @return string * The path to core's phpunit.xml.dist configuration file. + * + * @deprecated in Drupal 8.4.x for removal before Drupal 9.0.0. PHPUnit test + * runners should change directory into core/ and then run the phpunit tool. + * See simpletest_phpunit_run_command() for an example. + * + * @see simpletest_phpunit_run_command() */ function simpletest_phpunit_configuration_filepath() { + @trigger_error('The ' . __FUNCTION__ . ' function is deprecated since version 8.4.x and will be removed in 9.0.0.', E_USER_DEPRECATED); return \Drupal::root() . '/core/phpunit.xml.dist'; }