function it_is_not_fine_with_object_argument_not_defaulting_to_null(Argument $argument) { $argument->getType()->willReturn('DateTime'); $argument->getDefaultValue()->willReturn('""'); $argument->getName()->willReturn('objectArgument'); $this->validate($argument)->shouldHaveType('Memio\\Validator\\Violation\\SomeViolation'); }
function it_is_not_fine_with_name_duplicates(Argument $argument1, Argument $argument2) { $argument1->getName()->willReturn('myArgument'); $argument2->getName()->willReturn('myArgument'); $this->validate(array($argument1, $argument2))->shouldHaveType('Memio\\Validator\\Violation\\SomeViolation'); }