No Description

ClassCreatorExceptionSpec.php 637B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace spec\Prophecy\Exception\Doubler;
  3. use PhpSpec\ObjectBehavior;
  4. use Prophecy\Doubler\Generator\Node\ClassNode;
  5. use spec\Prophecy\Exception\Prophecy;
  6. class ClassCreatorExceptionSpec extends ObjectBehavior
  7. {
  8. function let(ClassNode $node)
  9. {
  10. $this->beConstructedWith('', $node);
  11. }
  12. function it_is_a_prophecy_exception()
  13. {
  14. $this->shouldBeAnInstanceOf('Prophecy\Exception\Exception');
  15. $this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\DoublerException');
  16. }
  17. function it_contains_a_reflected_node($node)
  18. {
  19. $this->getClassNode()->shouldReturn($node);
  20. }
  21. }