| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class LoggerTest extends Tests\Unit\AbstractTestCase |
||
| 12 | { |
||
| 13 | private Log\Test\TestLogger $testLogger; |
||
| 14 | |||
| 15 | private Log\LoggerAwareInterface $loggableClass; |
||
| 16 | |||
| 17 | protected function setUp(): void |
||
| 18 | { |
||
| 19 | $this->testLogger = $this->createTestLogger(); |
||
| 20 | $this->loggableClass = new class implements Log\LoggerAwareInterface { |
||
| 21 | use Traits\Logger; |
||
| 22 | |||
| 23 | public function getTraitLogger(): Log\LoggerInterface |
||
| 24 | { |
||
| 25 | return $this->getLogger(); |
||
| 26 | } |
||
| 27 | }; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function testDefaultLoggerIsNullLogger(): void |
||
| 33 | } |
||
| 34 | |||
| 35 | public function testSetsLogger(): void |
||
| 39 | } |
||
| 40 | |||
| 41 | public function testLogs(): void |
||
| 51 | } |
||
| 52 | } |
||
| 53 |