| 1 | <?php |
||
| 7 | class ArgumentResolverSpec extends ObjectBehavior |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param Knp\RadBundle\HttpFoundation\RequestManipulator $requestManipulator |
||
| 11 | * @param Symfony\Component\HttpFoundation\Request $request |
||
| 12 | */ |
||
| 13 | function let($requestManipulator, $request) |
||
| 17 | |||
| 18 | function it_should_resolve_scalar_arguments($request) |
||
| 22 | |||
| 23 | function it_should_resolve_path_arguments($requestManipulator, $request) |
||
| 29 | |||
| 30 | function it_should_throw_exception_when_an_argument_has_both_value_and_name($request) |
||
| 34 | |||
| 35 | function it_should_throw_exception_when_an_argument_has_no_value_nor_name($request) |
||
| 39 | |||
| 40 | function it_should_throw_exception_when_an_argument_has_extra_keys($request) |
||
| 44 | } |
||
| 45 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.