Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class CodeBlockSpec extends ObjectBehavior |
||
12 | { |
||
13 | function let() |
||
14 | { |
||
15 | $this->beConstructedWith('foo'); |
||
16 | } |
||
17 | |||
18 | function it_is_initializable() |
||
19 | { |
||
20 | $this->shouldHaveType(CodeBlock::class); |
||
21 | } |
||
22 | |||
23 | function it_contains_code() |
||
24 | { |
||
25 | $this->getCode()->shouldReturn('foo'); |
||
26 | } |
||
27 | |||
28 | function it_can_prepend_code() |
||
29 | { |
||
30 | $this->prepend(new CodeBlock('bar:'))->shouldBeLike(new CodeBlock('bar:foo')); |
||
31 | } |
||
38 |