| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | function its_resolveResource_uses_ExpressionLanguage($request, $attributes, $cake, $cakeRepository) |
||
| 25 | { |
||
| 26 | $attributes->get('test')->willReturn('value!'); |
||
| 27 | $cakeRepository->findBySlug('value!')->shouldBeCalled()->willReturn($cake); |
||
| 28 | $this->resolveResource($request, array('expr' => "service('orm.cake_repository').findBySlug(request.attributes.get('test'))"))->shouldReturn($cake); |
||
| 29 | } |
||
| 30 | } |
||
| 42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.