function it_throws_provided_exception(ObjectProphecy $object, MethodProphecy $method) { $this->beConstructedWith($exc = new \RuntimeException('Some exception')); $this->shouldThrow($exc)->duringExecute(array(), $object, $method); }