12345678910111213141516171819202122232425262728 |
- <?php
- namespace spec\Prophecy\Exception\Prediction;
- use PhpSpec\ObjectBehavior;
- use Prophecy\Call\Call;
- use Prophecy\Prophecy\MethodProphecy;
- use Prophecy\Prophecy\ObjectProphecy;
- class UnexpectedCallsCountExceptionSpec extends ObjectBehavior
- {
- function let( ObjectProphecy $objectProphecy, MethodProphecy $methodProphecy, Call $call1, Call $call2) {
- $methodProphecy->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);
- }
- }
|