CompanyPostMessageSpec::it_is_initializable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace spec\Yproximite\Api\Message\Company;
4
5
use PhpSpec\ObjectBehavior;
6
7
use Yproximite\Api\Message\Company\CompanyPostMessage;
8
9
class CompanyPostMessageSpec extends ObjectBehavior
10
{
11
    function it_is_initializable()
12
    {
13
        $this->shouldHaveType(CompanyPostMessage::class);
14
    }
15
16
    function it_should_build()
17
    {
18
        $this->setParentId(5);
19
        $this->setName('First company');
20
21
        $data = [
22
            'companyName' => 'First company',
23
            'parent'      => 5,
24
        ];
25
26
        $this->build()->shouldReturn($data);
27
    }
28
}
29