| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 17 | public function testRegisterRouter() |
||
| 18 | { |
||
| 19 | $container = new Container(); |
||
| 20 | $router = new Router(); |
||
| 21 | $router->initRouteCollection(); |
||
| 22 | $container->set('router', $router); |
||
| 23 | |||
| 24 | $provider = new RouterServiceProvider(); |
||
| 25 | $provider->setContainer($container); |
||
| 26 | $provider->registerUrlGenerator(); |
||
| 27 | |||
| 28 | self::assertInstanceOf(CompiledUrlGenerator::class, $container->get('url')); |
||
| 29 | } |
||
| 31 |