Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function testPlugin() |
||
27 | { |
||
28 | $plugin = new ConsolePlugin(); |
||
29 | $this->assertInstanceOf(DependencyProviderInterface::class, $plugin); |
||
30 | $container = new ContainerAutowire(new Container()); |
||
31 | $container->register(LocatorFacadeInterface::class, fn () => $this->createMock(LocatorFacadeInterface::class)); |
||
32 | $container->register(Container::class, fn () => $container); |
||
33 | |||
34 | $plugin->provideDependencies($container); |
||
35 | $this->assertInstanceOf(ConsoleApplicationFacadeInterface::class, $container->get(ConsoleApplicationFacadeInterface::class)); |
||
36 | } |
||
38 |