Skip to content

Commit

Permalink
Fixed Issue #8425
Browse files Browse the repository at this point in the history
The use of PHP_BINARY instead of 'php' should affect the used PHP Version. With the Constant, the correct php version should be called.
  • Loading branch information
DavidLambauer authored Feb 25, 2017
1 parent 53591c6 commit 9c7b197
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9c7b197

Please sign in to comment.