| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 21 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | public function test_handle()  | 
            ||
| 20 |     { | 
            ||
| 21 | $container = new Container();  | 
            ||
| 22 |         $container->set('app', new Application()); | 
            ||
| 23 | Container::setInstance($container);  | 
            ||
| 24 | |||
| 25 | $serviceProvider = new RouterServiceProvider();  | 
            ||
| 26 | $serviceProvider->setContainer($container);  | 
            ||
| 27 | $serviceProvider->register();  | 
            ||
| 28 | |||
| 29 | $applicationConsole = new \Symfony\Component\Console\Application();  | 
            ||
| 30 | $applicationConsole->add(new ClearCommand());  | 
            ||
| 31 | $applicationConsole->add(new CacheCommand());  | 
            ||
| 32 |         $command = $applicationConsole->get('router:cache'); | 
            ||
| 33 | |||
| 34 | $commandTester = new CommandTester($command);  | 
            ||
| 35 | $commandTester->execute([]);  | 
            ||
| 36 | |||
| 37 | $output = $commandTester->getDisplay();  | 
            ||
| 38 |         static::assertStringContainsString('Routes  cached successfully!', $output); | 
            ||
| 39 | }  | 
            ||
| 40 | }  | 
            ||
| 41 |