No Description

MethodNotFoundExceptionSpec.php 596B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace spec\Prophecy\Exception\Doubler;
  3. use PhpSpec\ObjectBehavior;
  4. use spec\Prophecy\Exception\Prophecy;
  5. class MethodNotFoundExceptionSpec extends ObjectBehavior
  6. {
  7. function let()
  8. {
  9. $this->beConstructedWith('', 'User', 'getName');
  10. }
  11. function it_is_DoubleException()
  12. {
  13. $this->shouldHaveType('Prophecy\Exception\Doubler\DoubleException');
  14. }
  15. function it_has_MethodName()
  16. {
  17. $this->getMethodName()->shouldReturn('getName');
  18. }
  19. function it_has_classnamej()
  20. {
  21. $this->getClassname()->shouldReturn('User');
  22. }
  23. }