No Description

ClassCreatorExceptionSpec.php 659B

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