mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Make phar build fails more debuggable
This commit is contained in:
parent
7ae0dd2a2a
commit
cfc8bf0730
2 changed files with 10 additions and 3 deletions
|
@ -58,7 +58,9 @@ class AllFunctionalTest extends \PHPUnit_Framework_TestCase
|
|||
$proc = new Process('php '.escapeshellarg(__DIR__.'/../../../bin/compile'));
|
||||
$exitcode = $proc->run();
|
||||
|
||||
$this->assertSame(0, $exitcode);
|
||||
if ($exitcode !== 0 || trim($proc->getOutput())) {
|
||||
$this->fail($proc->getOutput());
|
||||
}
|
||||
$this->assertTrue(file_exists(self::$pharPath));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue