You are here

function simpletest_phpunit_command in Drupal 8

Returns the command to run PHPUnit.

Return value

string The command that can be run through exec().

Deprecated

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

See also

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

1 call to simpletest_phpunit_command()
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 319
Provides testing functionality.

Code

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