function it_is_not_fine_with_abstract_and_final_methods(Method $method)
 {
     $method->isAbstract()->willReturn(true);
     $method->isFinal()->willReturn(true);
     $method->getName()->willReturn('__construct');
     $this->validate($method)->shouldHaveType('Memio\\Validator\\Violation\\SomeViolation');
 }
 function it_is_not_fine_with_protected_methods(Contract $contract, Method $method)
 {
     $contract->getName()->willReturn('HttpKernelInterface');
     $contract->allMethods()->willReturn(array($method));
     $method->isFinal()->willReturn(true);
     $method->getName()->willReturn('handle');
     $this->validate($contract)->shouldHaveType('Memio\\Validator\\Violation\\SomeViolation');
 }