diff --git a/app/code/Magento/Developer/Console/Command/DevTestsRunCommand.php b/app/code/Magento/Developer/Console/Command/DevTestsRunCommand.php index 43fd727445cf5..46669521ed22c 100644 --- a/app/code/Magento/Developer/Console/Command/DevTestsRunCommand.php +++ b/app/code/Magento/Developer/Console/Command/DevTestsRunCommand.php @@ -86,7 +86,7 @@ protected function execute(InputInterface $input, OutputInterface $output) list($dir, $options) = $this->commands[$key]; $dirName = realpath(BP . '/dev/tests/' . $dir); chdir($dirName); - $command = 'php '. BP . '/' . $vendorDir . '/phpunit/phpunit/phpunit ' . $options; + $command = PHP_BINARY . ' ' . BP . '/' . $vendorDir . '/phpunit/phpunit/phpunit ' . $options; $message = $dirName . '> ' . $command; $output->writeln(['', str_pad("---- {$message} ", 70, '-'), '']); passthru($command, $returnVal);