1
0
Fork 0
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:
Jordi Boggiano 2013-03-10 13:58:49 +01:00
parent 7ae0dd2a2a
commit cfc8bf0730
2 changed files with 10 additions and 3 deletions

View file

@ -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));
}