| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function testLogs(): void |
||
| 42 | { |
||
| 43 | $this->loggableClass->setLogger($this->testLogger); |
||
| 44 | $this->loggableClass->getTraitLogger()->log('critical', 'the message', ['the' => 'context']); |
||
| 45 | |||
| 46 | $this->assertSame([ |
||
| 47 | 'level' => 'critical', |
||
| 48 | 'message' => 'the message', |
||
| 49 | 'context' => ['the' => 'context'], |
||
| 50 | ], $this->testLogger->records[0]); |
||
| 51 | } |
||
| 53 |