Returns the command to run PHPUnit.
function simpletest_phpunit_command() {
// Don't use the committed version in composer's bin dir if running on
// windows.
if (substr(PHP_OS, 0, 3) == 'WIN') {
$php_executable_finder = new PhpExecutableFinder();
$php = $php_executable_finder
->find();
$phpunit_bin = escapeshellarg($php) . " -f " . escapeshellarg(DRUPAL_ROOT . "/core/vendor/phpunit/phpunit/composer/bin/phpunit") . " --";
}
else {
$phpunit_bin = DRUPAL_ROOT . "/core/vendor/bin/phpunit";
}
return $phpunit_bin;
}