public resolve ( |
||
$parameter | ||
$unresolvedParameters | ||
$injectedParameters | ||
$context | ||
return |
/** * @expectedException \Nelmio\Alice\Throwable\Exception\Generator\Resolver\ResolverNotFoundException * @expectedExceptionMessage No resolver found to resolve parameter "foo". */ public function testThrowsAnExceptionIfNoSuitableParserIsFound() { $registry = new ParameterResolverRegistry([]); $registry->resolve(new Parameter('foo', null), new ParameterBag(), new ParameterBag()); }