function it_adds_ThrowPromise_during_willThrow_call($objectProphecy) { $objectProphecy->addMethodProphecy($this)->willReturn(null); $this->willThrow('RuntimeException'); $this->getPromise()->shouldBeAnInstanceOf('Prophecy\\Promise\\ThrowPromise'); }