public function hasParameter($paramName, $namespace = null, $scope = null)
{
foreach ($this->getAllResolvers() as $resolver) {
$hasParameter = $resolver->hasParameter($paramName, $namespace, $scope);
if ($hasParameter) {
return true;
}
}
return false;
}
public function testHasParameterFalse() { $paramName = 'foo'; $namespace = 'yetAnotherNamespace'; $scope = 'mySiteaccess'; $resolver = $this->getMock('eZ\\Publish\\Core\\MVC\\ConfigResolverInterface'); $resolver->expects($this->once())->method('hasParameter')->with($paramName, $namespace, $scope)->will($this->returnValue(false)); $this->chainResolver->addResolver($resolver); $this->assertFalse($this->chainResolver->hasParameter($paramName, $namespace, $scope)); }