Code Duplication    Length = 7-7 lines in 2 locations

tests/unit/QuantityTest.php 2 locations

@@ 111-117 (lines=7) @@
108
        }
109
    }
110
111
    public function testAdd()
112
    {
113
        $this->assertSame(2, $this->some->add($this->some)->getQuantity());
114
        $this->assertSame(1001, $this->byte->add($this->kilo)->getQuantity());
115
        $this->assertSame(1.001, $this->kilo->add($this->byte)->getQuantity());
116
        $this->assertSame(1.000001, $this->mega->add($this->byte)->getQuantity());
117
    }
118
119
    public function testSubtract()
120
    {
@@ 119-125 (lines=7) @@
116
        $this->assertSame(1.000001, $this->mega->add($this->byte)->getQuantity());
117
    }
118
119
    public function testSubtract()
120
    {
121
        $this->assertSame(0, $this->some->subtract($this->some)->getQuantity());
122
        $this->assertSame(-999, $this->byte->subtract($this->kilo)->getQuantity());
123
        $this->assertSame(0.999, $this->kilo->subtract($this->byte)->getQuantity());
124
        $this->assertSame(0.999999, $this->mega->subtract($this->byte)->getQuantity());
125
    }
126
127
    public function testMultiply()
128
    {