Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function testHandleWriteIfEnabled(): void |
||
40 | { |
||
41 | $logRepository = $this->createMock(LogRepository::class); |
||
42 | $logRepository->expects(self::once()) |
||
43 | ->method('log') |
||
44 | ->with($this->record); |
||
45 | |||
46 | $handler = new DbHandler(fn () => $logRepository); |
||
47 | $handler->enable(); |
||
48 | $handler->handle($this->record); |
||
49 | } |
||
51 |