| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | $logLocator = $this->prophesize('Paraunit\Parser\JSONLogFetcher'); |
||
| 22 | $logLocator->fetch($process)->willThrow(new JSONLogNotFoundException($process)); |
||
| 23 | $parser = new JSONLogParser($logLocator->reveal()); |
||
| 24 | |||
| 25 | $parser->parse($process); |
||
| 26 | |||
| 27 | $this->assertTrue($process->hasAbnormalTermination()); |
||
| 28 | $this->assertEquals('Unknown function -- test log not found', $process->getAbnormalTerminatedFunction()); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |