Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testParseHandlesMissingLogs() |
||
19 | { |
||
20 | $process = new StubbedParaProcess(); |
||
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 |