| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 20 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 11 | public function testGenerateRoutes()  | 
            ||
| 12 |     { | 
            ||
| 13 |         $client = static::createClient(array('environment' => 'symfony' . Kernel::MAJOR_VERSION)); | 
            ||
| 14 | |||
| 15 | $container = $client->getContainer();  | 
            ||
| 16 | |||
| 17 | // mock a request flow to allow testing without enabling assets  | 
            ||
| 18 |         if (Kernel::MAJOR_VERSION < 3) { | 
            ||
| 19 | $request = new Request();  | 
            ||
| 20 |             $container->enterScope('request'); | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 21 |             $container->set('request', $request, 'request'); | 
            ||
| 22 | }  | 
            ||
| 23 | |||
| 24 | $pathHelper = new PathHelper($container);  | 
            ||
| 25 | |||
| 26 | // test route is defined in Tests/app/routing.yml  | 
            ||
| 27 | $routes = $pathHelper->generateRoutes(['test_route' => []]);  | 
            ||
| 28 | |||
| 29 | $this->assertEquals(['api.test_route = "/monitor";'], $routes);  | 
            ||
| 30 | }  | 
            ||
| 31 | }  | 
            ||
| 32 | 
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.