Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function testAliases() |
||
20 | { |
||
21 | $container = new Container(); |
||
22 | Container::setInstance($container); |
||
23 | |||
24 | $provider = new NotificationServiceProvider(); |
||
25 | $provider->setContainer($container); |
||
26 | $provider->register(); |
||
27 | |||
28 | $channelManager = $container->get(ChannelInterface::class); |
||
29 | static::assertInstanceOf(ChannelManager::class, $channelManager); |
||
30 | |||
31 | $dispatcher = $container->get(DispatcherInterface::class); |
||
32 | static::assertInstanceOf(Dispatcher::class, $dispatcher); |
||
33 | } |
||
35 |