| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | public function testNotifyLogsExceptions() |
||
| 54 | { |
||
| 55 | $this->emailReporterMock |
||
| 56 | ->expects($this->any()) |
||
| 57 | ->method('notify') |
||
| 58 | ->willThrowException(new \Exception('Beard error #4')) |
||
| 59 | ; |
||
| 60 | |||
| 61 | $this->rrm->add($this->emailReporterMock); |
||
| 62 | $this->rrm->notifyAll(new TestResult); |
||
| 63 | |||
| 64 | $this->assertCount(1, $this->loggerSpy->getInvocations()); |
||
| 65 | } |
||
| 66 | } |
||
| 67 |