| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | protected function printDefect(TestFailure $defect, int $count): void |
||
| 12 | { |
||
| 13 | $this->printDefectHeader($defect, $count); |
||
| 14 | |||
| 15 | $exception = $defect->thrownException(); |
||
| 16 | |||
| 17 | if (!($exception instanceof Exception)) { |
||
| 18 | $this->write(sprintf('%s:%u', $exception->getFile(), $exception->getLine())); |
||
| 19 | $this->write(PHP_EOL); |
||
| 20 | } |
||
| 21 | |||
| 22 | $this->printDefectTrace($defect); |
||
| 23 | } |
||
| 25 |