Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function testGenerateRoutes() |
||
11 | { |
||
12 | $client = static::createClient(array('environment' => 'twig')); |
||
13 | |||
14 | // mock a request flow to allow testing without enabling assets |
||
15 | // (which causes compatibility issues with old symfony versions) |
||
16 | $container = $client->getContainer(); |
||
17 | $request = new Request(); |
||
18 | $container->enterScope('request'); |
||
|
|||
19 | $container->set('request', $request, 'request'); |
||
20 | |||
21 | $pathHelper = new PathHelper($container); |
||
22 | |||
23 | // test route is defined in Tests/app/routing.yml |
||
24 | $routes = $pathHelper->generateRoutes(['test_route' => []]); |
||
25 | |||
26 | $this->assertEquals(['api.test_route = "/monitor";'], $routes); |
||
27 | } |
||
28 | } |
||
29 |
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.