getObjectProphecy()->willReturn($objectProphecy); $this->beConstructedWith('message', $methodProphecy); } function it_is_PredictionException() { $this->shouldHaveType('Prophecy\Exception\Prediction\PredictionException'); } function it_extends_MethodProphecyException() { $this->shouldHaveType('Prophecy\Exception\Prophecy\MethodProphecyException'); } }