function it_is_not_fine_with_abstract_methods_with_body(Method $method) { $method->isAbstract()->willReturn(true); $method->getBody()->willReturn(''); $method->getName()->willReturn('__construct'); $this->validate($method)->shouldHaveType('Memio\\Validator\\Violation\\SomeViolation'); }
function it_is_not_fine_none_pure_virtual_methods(Contract $contract, Method $method) { $contract->getName()->willReturn('HttpKernelInterface'); $contract->allMethods()->willReturn(array($method)); $method->getBody()->willReturn('echo "Nobody expects the spanish inquisition";'); $method->getName()->willReturn('handle'); $this->validate($contract)->shouldHaveType('Memio\\Validator\\Violation\\SomeViolation'); }