Code Duplication    Length = 12-14 lines in 2 locations

tests/BasketTest.php 2 locations

@@ 290-301 (lines=12) @@
287
        $this->assertEmpty($contents);
288
    }
289
290
    public function testItemToArray()
291
    {
292
        $actualId = $this->basket->insert([
293
            'id'       => 'foo',
294
            'name'     => 'bar',
295
            'price'    => 100,
296
            'quantity' => 1,
297
            'weight'   => 200,
298
        ]);
299
300
        $this->assertTrue(is_array($this->basket->item($actualId)->toArray()));
301
    }
302
303
    public function testbasketToArray()
304
    {
@@ 303-316 (lines=14) @@
300
        $this->assertTrue(is_array($this->basket->item($actualId)->toArray()));
301
    }
302
303
    public function testbasketToArray()
304
    {
305
        $this->basket->insert([
306
            'id'       => 'foo',
307
            'name'     => 'bar',
308
            'price'    => 100,
309
            'quantity' => 1,
310
            'weight'   => 200,
311
        ]);
312
313
        foreach ($this->basket->contents(true) as $item) {
314
            $this->assertTrue(is_array($item));
315
        }
316
    }
317
318
    public function testTax()
319
    {