Completed
Push — 1.4-password-hashing-2 ( b79be0 )
by Kamil
16:31
created

ShopBillingDataSpec   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 0
loc 43
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A it_implements_shop_billing_data_interface() 0 4 1
A its_company_is_mutable() 0 5 1
A its_tax_id_is_mutable() 0 5 1
A its_country_code_is_mutable() 0 5 1
A its_street_is_mutable() 0 5 1
A its_city_is_mutable() 0 5 1
A its_postcode_is_mutable() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace spec\Sylius\Component\Core\Model;
6
7
use PhpSpec\ObjectBehavior;
8
use Sylius\Component\Core\Model\ShopBillingDataInterface;
9
10
final class ShopBillingDataSpec extends ObjectBehavior
11
{
12
    function it_implements_shop_billing_data_interface(): void
13
    {
14
        $this->shouldImplement(ShopBillingDataInterface::class);
15
    }
16
17
    function its_company_is_mutable(): void
18
    {
19
        $this->setCompany('Ragnarok');
20
        $this->getCompany()->shouldReturn('Ragnarok');
21
    }
22
23
    function its_tax_id_is_mutable(): void
24
    {
25
        $this->setTaxId('1100110011');
26
        $this->getTaxId()->shouldReturn('1100110011');
27
    }
28
29
    function its_country_code_is_mutable(): void
30
    {
31
        $this->setCountryCode('US');
32
        $this->getCountryCode()->shouldReturn('US');
33
    }
34
35
    function its_street_is_mutable(): void
36
    {
37
        $this->setStreet('Blue Street');
38
        $this->getStreet()->shouldReturn('Blue Street');
39
    }
40
41
    function its_city_is_mutable(): void
42
    {
43
        $this->setCity('New York');
44
        $this->getCity()->shouldReturn('New York');
45
    }
46
47
    function its_postcode_is_mutable(): void
48
    {
49
        $this->setPostcode('94111');
50
        $this->getPostcode()->shouldReturn('94111');
51
    }
52
}
53