Code Duplication    Length = 9-9 lines in 3 locations

test/unit/Domain/ValueObject/TaxRateTest.php 3 locations

@@ 37-45 (lines=9) @@
34
        ];
35
    }
36
37
    public function testEquals()
38
    {
39
        $sut = new TaxRate(20);
40
        $taxrate1 = new TaxRate(20);
41
        $taxrate2 = new TaxRate(10);
42
43
        self::assertTrue($sut->equals($taxrate1));
44
        self::assertFalse($sut->equals($taxrate2));
45
    }
46
47
48
    public function testLessThan()
@@ 48-56 (lines=9) @@
45
    }
46
47
48
    public function testLessThan()
49
    {
50
        $sut = new TaxRate(20);
51
        $taxrate1 = new TaxRate(25);
52
        $taxrate2 = new TaxRate(10);
53
54
        self::assertTrue($sut->lessThan($taxrate1));
55
        self::assertFalse($sut->lessThan($taxrate2));
56
    }
57
58
    public function testGreaterThan()
59
    {
@@ 58-66 (lines=9) @@
55
        self::assertFalse($sut->lessThan($taxrate2));
56
    }
57
58
    public function testGreaterThan()
59
    {
60
        $sut = new TaxRate(20);
61
        $taxrate1 = new TaxRate(10);
62
        $taxrate2 = new TaxRate(25);
63
64
        self::assertTrue($sut->greaterThan($taxrate1));
65
        self::assertFalse($sut->greaterThan($taxrate2));
66
    }
67
68
    public function testCreate()
69
    {