No Description

ClassMirrorExceptionSpec.php 610B

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