Code Duplication    Length = 15-15 lines in 2 locations

tests/PackedBoxListTest.php 2 locations

@@ 16-30 (lines=15) @@
13
14
class PackedBoxListTest extends TestCase
15
{
16
    function testVolumeUtilisation()
17
    {
18
        $box = new TestBox('Box', 10, 10, 10, 10, 10, 10, 10, 10);
19
        $item = new TestItem('Item', 5, 10, 10, 10, true);
20
21
        $boxItems = new ItemList();
22
        $boxItems->insert($item);
23
24
        $packedBox = new PackedBox($box, $boxItems, 1, 2, 3, 4, 0, 0, 0);
25
26
        $packedBoxList = new PackedBoxList();
27
        $packedBoxList->insert($packedBox);
28
29
        self::assertEquals(50, $packedBoxList->getVolumeUtilisation());
30
    }
31
32
    function testWeightVariance()
33
    {
@@ 32-46 (lines=15) @@
29
        self::assertEquals(50, $packedBoxList->getVolumeUtilisation());
30
    }
31
32
    function testWeightVariance()
33
    {
34
        $box = new TestBox('Box', 10, 10, 10, 10, 10, 10, 10, 10);
35
        $item = new TestItem('Item', 5, 10, 10, 10, true);
36
37
        $boxItems = new ItemList();
38
        $boxItems->insert($item);
39
40
        $packedBox = new PackedBox($box, $boxItems, 1, 2, 3, 4, 0, 0, 0);
41
42
        $packedBoxList = new PackedBoxList();
43
        $packedBoxList->insert($packedBox);
44
45
        self::assertEquals(0, $packedBoxList->getWeightVariance());
46
    }
47
}
48