NoCallsExceptionSpec.php 731 B

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