From 9c7b197d333e0bc4ccee65e548aba159e7b8565d Mon Sep 17 00:00:00 2001 From: DavidLamabuer Date: Sat, 25 Feb 2017 19:39:17 +0100 Subject: [PATCH] Fixed Issue #8425 The use of PHP_BINARY instead of 'php' should affect the used PHP Version. With the Constant, the correct php version should be called. --- .../Magento/Developer/Console/Command/DevTestsRunCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);