mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix functional tests to use the same PHP version as PHPUnit runs with
This commit is contained in:
parent
4f47a4c667
commit
0879e80d56
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ class AllFunctionalTest extends TestCase
|
|||
}
|
||||
}
|
||||
|
||||
$proc = new Process('php -dphar.readonly=0 '.escapeshellarg('./bin/compile'), $target);
|
||||
$proc = new Process((defined('PHP_BINARY') ? escapeshellcmd(PHP_BINARY) : 'php').' -dphar.readonly=0 '.escapeshellarg('./bin/compile'), $target);
|
||||
$exitcode = $proc->run();
|
||||
|
||||
if ($exitcode !== 0 || trim($proc->getOutput())) {
|
||||
|
@ -110,7 +110,7 @@ class AllFunctionalTest extends TestCase
|
|||
'COMPOSER_CACHE_DIR' => $this->testDir.'cache',
|
||||
);
|
||||
|
||||
$cmd = 'php '.escapeshellarg(self::$pharPath).' --no-ansi '.$testData['RUN'];
|
||||
$cmd = (defined('PHP_BINARY') ? escapeshellcmd(PHP_BINARY) : 'php') .' '.escapeshellarg(self::$pharPath).' --no-ansi '.$testData['RUN'];
|
||||
$proc = new Process($cmd, $this->testDir, $env, null, 300);
|
||||
$output = '';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue