diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index ba7b853..5c99f66 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -287,7 +287,7 @@ function simpletest_phpunit_run_command(array $unescaped_test_classnames, $phpun * The command that can be run through exec(). */ function simpletest_phpunit_command() { - // Load the actual autoloader being used and determine it's filename using + // Load the actual autoloader being used and determine its filename using // reflection. We can determine the vendor directory based on that filename. $autoloader = require \Drupal::root() . '/autoload.php'; $reflector = new ReflectionClass($autoloader); @@ -298,10 +298,10 @@ function simpletest_phpunit_command() { if (substr(PHP_OS, 0, 3) == 'WIN') { $php_executable_finder = new PhpExecutableFinder(); $php = $php_executable_finder->find(); - $phpunit_bin = escapeshellarg($php) . " -f " . escapeshellarg($vendor_dir . '/phpunit/phpunit/composer/bin/phpunit') . " --"; + $phpunit_bin = escapeshellarg($php) . ' -f ' . escapeshellarg($vendor_dir . '/phpunit/phpunit/composer/bin/phpunit') . ' --'; } else { - $phpunit_bin = $vendor_dir . "/phpunit/phpunit/phpunit"; + $phpunit_bin = $vendor_dir . '/phpunit/phpunit/phpunit'; } return $phpunit_bin; }