Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
36 | public function setContainerShouldConfigureContainer() |
||
37 | { |
||
38 | $command = $this->getMockForAbstractClass(ContainerAwareCommand::class, ['commandName']); |
||
39 | |||
40 | $container = $this->getMock(ContainerInterface::class); |
||
41 | |||
42 | $command->setContainer($container); |
||
43 | |||
44 | $getContainerReflectionMethod = new \ReflectionMethod($command, 'getContainer'); |
||
45 | $getContainerReflectionMethod->setAccessible(true); |
||
46 | |||
47 | $this->assertSame($container, $getContainerReflectionMethod->invoke($command)); |
||
48 | } |
||
49 | } |
||
50 |