No Description

InterfaceNotFoundExceptionSpec.php 552B

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