Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testInvoke() |
||
14 | { |
||
15 | $factory = new CommandHandlerFactory(); |
||
16 | |||
17 | $loggerMock = \Mockery::mock(LoggerInterface::class); |
||
1 ignored issue
–
show
|
|||
18 | $this->getContainer() |
||
19 | ->shouldReceive('get') |
||
1 ignored issue
–
show
|
|||
20 | ->once() |
||
21 | ->withArgs(['Logger']) |
||
22 | ->andReturn($loggerMock); |
||
2 ignored issues
–
show
|
|||
23 | |||
24 | $this->assertInstanceOf(CommandHandler::class, $factory($this->getContainer(), '')); |
||
25 | } |
||
27 |