CommandSpec::it_is_initializable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace spec\Hexarchium\CoreDomain\UseCase\CreateDomain;
4
5
use Hexarchium\CoreDomain\UseCase\CreateDomain\Command;
6
use PhpSpec\ObjectBehavior;
7
8
class CommandSpec extends ObjectBehavior
9
{
10
    function it_is_initializable()
11
    {
12
        $this->defaultConstructor();
13
        $this->shouldHaveType(Command::class);
14
    }
15
16
    function defaultConstructor()
17
    {
18
        $this->beConstructedWith('Domain');
19
    }
20
21
    function it_id_have_access_by_getter()
22
    {
23
        $this->defaultConstructor();
24
        $this->getDomainId()->shouldReturn('Domain');
25
    }
26
}
27