Conditions | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 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 |