Code Duplication    Length = 14-16 lines in 2 locations

tests/ItemTest.php 2 locations

@@ 146-159 (lines=14) @@
143
        $this->assertFalse($this->item->hasOptions());
144
    }
145
146
    public function testItemTotalPrice(): void
147
    {
148
        $item = [
149
            'id'       => 'foo',
150
            'name'     => 'bar',
151
            'price'    => 100,
152
            'quantity' => 1,
153
            'weight'   => 200,
154
        ];
155
156
        $this->item = new Item($item);
157
158
        $this->assertEquals(100, $this->item->single());
159
    }
160
161
    public function testItemSetTax(): void
162
    {
@@ 161-176 (lines=16) @@
158
        $this->assertEquals(100, $this->item->single());
159
    }
160
161
    public function testItemSetTax(): void
162
    {
163
        $item = [
164
            'id'       => 'foo',
165
            'name'     => 'bar',
166
            'price'    => 100,
167
            'quantity' => 1,
168
            'weight'   => 200,
169
        ];
170
171
        $this->item = new Item($item);
172
173
        $this->item->tax = 25;
174
175
        $this->assertEquals(25, $this->item->tax());
176
    }
177
}
178