| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | private function mockLogger(Exception $exception): LoggerInterface |
||
| 39 | { |
||
| 40 | $logger = $this->createMock(LoggerInterface::class); |
||
| 41 | $logger |
||
| 42 | ->expects($this->once()) |
||
| 43 | ->method('error') |
||
| 44 | ->with($this->equalTo($exception->getMessage()), $this->equalTo(['exception' => $exception])); |
||
| 45 | |||
| 46 | return $logger; |
||
| 47 | } |
||
| 48 | |||
| 63 | } |