No Description

UnexpectedCallExceptionSpec.php 803B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace spec\Prophecy\Exception\Call;
  3. use PhpSpec\ObjectBehavior;
  4. use spec\Prophecy\Exception\Prophecy\Prophecy;
  5. class UnexpectedCallExceptionSpec extends ObjectBehavior
  6. {
  7. /**
  8. * @param \Prophecy\Prophecy\ObjectProphecy $objectProphecy
  9. */
  10. function let($objectProphecy)
  11. {
  12. $this->beConstructedWith('msg', $objectProphecy, 'getName', array('arg1', 'arg2'));
  13. }
  14. function it_is_prophecy_exception()
  15. {
  16. $this->shouldBeAnInstanceOf('Prophecy\Exception\Prophecy\ObjectProphecyException');
  17. }
  18. function it_exposes_method_name_through_getter()
  19. {
  20. $this->getMethodName()->shouldReturn('getName');
  21. }
  22. function it_exposes_arguments_through_getter()
  23. {
  24. $this->getArguments()->shouldReturn(array('arg1', 'arg2'));
  25. }
  26. }