Completed
Push — master ( e6fe6f...a29d2d )
by Hannes
09:33
created

PersonalIdNodeSpec   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 4 1
A it_implements_node_interface() 0 4 1
A it_contains_a_type() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace spec\byrokrat\autogiro\Tree;
6
7
use byrokrat\autogiro\Tree\PersonalIdNode;
8
use byrokrat\autogiro\Tree\Node;
9
use PhpSpec\ObjectBehavior;
10
11
class PersonalIdNodeSpec extends ObjectBehavior
12
{
13
    function it_is_initializable()
14
    {
15
        $this->shouldHaveType(PersonalIdNode::CLASS);
16
    }
17
18
    function it_implements_node_interface()
19
    {
20
        $this->shouldHaveType(Node::CLASS);
21
    }
22
23
    function it_contains_a_type()
24
    {
25
        $this->getType()->shouldEqual('PersonalIdNode');
26
    }
27
}
28