public function testResolveVoter()
 {
     $this->parameterResolver->expects($this->once())->method('resolveVoter')->will($this->returnValue(true));
     $this->assertTrue($this->cachedParameterResolver->resolveVoter());
     $this->assertTrue($this->cachedParameterResolver->resolveVoter());
 }
 public function testResolveValidationGroups()
 {
     $this->parameterResolver->expects($this->once())->method('resolveValidationGroups')->will($this->returnValue($groups = ['group']));
     $this->assertSame($groups, $this->cachedParameterResolver->resolveValidationGroups());
     $this->assertSame($groups, $this->cachedParameterResolver->resolveValidationGroups());
 }