No Description

UnexpectedCallsCountExceptionSpec.php 932B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace spec\Prophecy\Exception\Prediction;
  3. use PhpSpec\ObjectBehavior;
  4. class UnexpectedCallsCountExceptionSpec extends ObjectBehavior
  5. {
  6. /**
  7. * @param \Prophecy\Prophecy\ObjectProphecy $objectProphecy
  8. * @param \Prophecy\Prophecy\MethodProphecy $methodProphecy
  9. * @param \Prophecy\Call\Call $call1
  10. * @param \Prophecy\Call\Call $call2
  11. */
  12. function let($objectProphecy, $methodProphecy, $call1, $call2)
  13. {
  14. $methodProphecy->getObjectProphecy()->willReturn($objectProphecy);
  15. $this->beConstructedWith('message', $methodProphecy, 5, array($call1, $call2));
  16. }
  17. function it_extends_UnexpectedCallsException()
  18. {
  19. $this->shouldBeAnInstanceOf('Prophecy\Exception\Prediction\UnexpectedCallsException');
  20. }
  21. function it_should_expose_expectedCount_through_getter()
  22. {
  23. $this->getExpectedCount()->shouldReturn(5);
  24. }
  25. }