No Description

NoCallsExceptionSpec.php 769B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace spec\Prophecy\Exception\Prediction;
  3. use PhpSpec\ObjectBehavior;
  4. class NoCallsExceptionSpec extends ObjectBehavior
  5. {
  6. /**
  7. * @param \Prophecy\Prophecy\ObjectProphecy $objectProphecy
  8. * @param \Prophecy\Prophecy\MethodProphecy $methodProphecy
  9. */
  10. function let($objectProphecy, $methodProphecy)
  11. {
  12. $methodProphecy->getObjectProphecy()->willReturn($objectProphecy);
  13. $this->beConstructedWith('message', $methodProphecy);
  14. }
  15. function it_is_PredictionException()
  16. {
  17. $this->shouldHaveType('Prophecy\Exception\Prediction\PredictionException');
  18. }
  19. function it_extends_MethodProphecyException()
  20. {
  21. $this->shouldHaveType('Prophecy\Exception\Prophecy\MethodProphecyException');
  22. }
  23. }