MethodNotExtendableExceptionSpec.php 600 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace spec\Prophecy\Exception\Doubler;
  3. use PhpSpec\ObjectBehavior;
  4. use spec\Prophecy\Exception\Prophecy;
  5. class MethodNotExtendableExceptionSpec 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_classname()
  20. {
  21. $this->getClassName()->shouldReturn('User');
  22. }
  23. }