ClassNotFoundExceptionSpec.php 595 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace spec\Prophecy\Exception\Doubler;
  3. use PhpSpec\ObjectBehavior;
  4. use spec\Prophecy\Exception\Prophecy;
  5. class ClassNotFoundExceptionSpec extends ObjectBehavior
  6. {
  7. function let()
  8. {
  9. $this->beConstructedWith('msg', 'CustomClass');
  10. }
  11. function it_is_a_prophecy_exception()
  12. {
  13. $this->shouldBeAnInstanceOf('Prophecy\Exception\Exception');
  14. $this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\DoubleException');
  15. }
  16. function its_getClassname_returns_classname()
  17. {
  18. $this->getClassname()->shouldReturn('CustomClass');
  19. }
  20. }