| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function testBuildPhar() |
||
| 33 | { |
||
| 34 | $fs = new Filesystem; |
||
| 35 | $fs->remove(dirname(self::$pharPath)); |
||
| 36 | $this->ensureDirectoryExists(dirname(self::$pharPath)); |
||
| 37 | chdir(dirname(self::$pharPath)); |
||
| 38 | |||
| 39 | $proc = new Process('php '.escapeshellarg(__DIR__ . '/../../bin/compile'), dirname(self::$pharPath)); |
||
| 40 | $exitcode = $proc->run(); |
||
| 41 | if ($exitcode !== 0 || trim($proc->getOutput())) { |
||
| 42 | $this->fail($proc->getOutput()); |
||
| 43 | } |
||
| 44 | $this->assertTrue(file_exists(self::$pharPath)); |
||
| 45 | } |
||
| 46 | |||
| 52 |