Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function it_maps_method_call_service_retrieval() |
||
52 | { |
||
53 | $ids = []; |
||
54 | $map = ['url_generator' => 'router', 'template' => 'twig']; |
||
55 | |||
56 | $services = new Services($map, new CallableServiceLocator(function ($id) use (&$ids) { $ids[] = $id; })); |
||
57 | $services->getUrlGenerator(); |
||
58 | $services->getTemplate(); |
||
59 | |||
60 | $this->assertSame(['router', 'twig'], $ids); |
||
61 | } |
||
63 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.