Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function testCallingLogWithALoggerSetWillCallTheLogger() |
||
40 | { |
||
41 | $logger = m::mock(LoggerInterface::class); |
||
42 | $this->logger->setLogger($logger); |
||
43 | |||
44 | $logger->shouldReceive('log') |
||
45 | ->with(LogLevel::INFO, 'Graze\DataFile\Test\Helper\FakeOptionalLogger: some text', []) |
||
46 | ->once(); |
||
47 | |||
48 | $this->logger->doLog('some text'); |
||
49 | } |
||
50 | } |
||
51 |