getObjectProphecy()->willReturn($objectProphecy); $this->beConstructedWith('message', $methodProphecy, 5, array($call1, $call2)); } function it_extends_UnexpectedCallsException() { $this->shouldBeAnInstanceOf('Prophecy\Exception\Prediction\UnexpectedCallsException'); } function it_should_expose_expectedCount_through_getter() { $this->getExpectedCount()->shouldReturn(5); } }