comparison vendor/phpspec/prophecy/spec/Prophecy/Exception/Doubler/ClassCreatorExceptionSpec.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace spec\Prophecy\Exception\Doubler;
4
5 use PhpSpec\ObjectBehavior;
6 use Prophecy\Doubler\Generator\Node\ClassNode;
7 use spec\Prophecy\Exception\Prophecy;
8
9 class ClassCreatorExceptionSpec extends ObjectBehavior
10 {
11 function let(ClassNode $node)
12 {
13 $this->beConstructedWith('', $node);
14 }
15
16 function it_is_a_prophecy_exception()
17 {
18 $this->shouldBeAnInstanceOf('Prophecy\Exception\Exception');
19 $this->shouldBeAnInstanceOf('Prophecy\Exception\Doubler\DoublerException');
20 }
21
22 function it_contains_a_reflected_node($node)
23 {
24 $this->getClassNode()->shouldReturn($node);
25 }
26 }