Code Duplication    Length = 8-8 lines in 2 locations

tests/Shipping/ShippingTest.php 2 locations

@@ 20-27 (lines=8) @@
17
    /**
18
     * @test
19
     */
20
    public function constructorMustBeAbleToReceiveTypeOnly()
21
    {
22
        $shipping = new Shipping(Type::TYPE_PAC);
23
24
        $this->assertAttributeEquals(Type::TYPE_PAC, 'type', $shipping);
25
        $this->assertAttributeEquals(null, 'address', $shipping);
26
        $this->assertAttributeEquals(null, 'cost', $shipping);
27
    }
28
29
    /**
30
     * @test
@@ 32-39 (lines=8) @@
29
    /**
30
     * @test
31
     */
32
    public function constructorMustBeAbleToReceiveTypeAndCost()
33
    {
34
        $shipping = new Shipping(Type::TYPE_PAC, null, '10.31');
35
36
        $this->assertAttributeEquals(Type::TYPE_PAC, 'type', $shipping);
37
        $this->assertAttributeEquals(null, 'address', $shipping);
38
        $this->assertAttributeEquals(10.31, 'cost', $shipping);
39
    }
40
41
    /**
42
     * @test