function it_instantiates_exceptions_with_required_arguments(ObjectProphecy $object, MethodProphecy $method) { $this->beConstructedWith('spec\\Prophecy\\Promise\\RequiredArgumentException'); $this->shouldThrow('spec\\Prophecy\\Promise\\RequiredArgumentException')->duringExecute(array(), $object, $method); }