mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix tests by passing proper working directory to processes
This commit is contained in:
parent
6f61d95829
commit
4af69c85ca
2 changed files with 5 additions and 5 deletions
|
@ -55,9 +55,8 @@ class AllFunctionalTest extends \PHPUnit_Framework_TestCase
|
|||
$fs->ensureDirectoryExists(dirname(self::$pharPath));
|
||||
chdir(dirname(self::$pharPath));
|
||||
|
||||
$proc = new Process('php '.escapeshellarg(__DIR__.'/../../../bin/compile'));
|
||||
$proc = new Process('php '.escapeshellarg(__DIR__.'/../../../bin/compile'), dirname(self::$pharPath));
|
||||
$exitcode = $proc->run();
|
||||
|
||||
if ($exitcode !== 0 || trim($proc->getOutput())) {
|
||||
$this->fail($proc->getOutput());
|
||||
}
|
||||
|
@ -76,7 +75,7 @@ class AllFunctionalTest extends \PHPUnit_Framework_TestCase
|
|||
putenv('COMPOSER_HOME='.$this->testDir.'home');
|
||||
|
||||
$cmd = 'php '.escapeshellarg(self::$pharPath).' --no-ansi '.$testData['RUN'];
|
||||
$proc = new Process($cmd);
|
||||
$proc = new Process($cmd, __DIR__.'/Fixtures/functional');
|
||||
$exitcode = $proc->run();
|
||||
|
||||
if (isset($testData['EXPECT'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue