Code Duplication    Length = 7-7 lines in 3 locations

tests/Lists/CircularLinkedListTest.php 1 location

@@ 40-46 (lines=7) @@
37
        $this->assertEquals(true, $this->list->get(2));
38
    }
39
    
40
    public function testGetLast() {
41
        $this->assertNull($this->list->getLast());
42
        $this->list->push(true);
43
        $this->list->push(50);
44
        $this->list->push("string");
45
        $this->assertEquals("string", $this->list->getLast());
46
    }
47
48
    public function testInsert() {
49
        $this->list->insert(0, 100);

tests/Lists/DoublyLinkedListTest.php 1 location

@@ 40-46 (lines=7) @@
37
        $this->assertEquals(true, $this->list->get(2));
38
    }
39
40
    public function testGetLast() {
41
        $this->assertNull($this->list->getLast());
42
        $this->list->push(true);
43
        $this->list->push(50);
44
        $this->list->push("string");
45
        $this->assertEquals("string", $this->list->getLast());
46
    }
47
48
    public function testInsert() {
49
        $this->list->insert(0, 100);

tests/Lists/ArrayListTest.php 1 location

@@ 40-46 (lines=7) @@
37
        $this->assertEquals(true, $this->list->get(2));
38
    }
39
40
    public function testGetLast() {
41
        $this->assertNull($this->list->getLast());
42
        $this->list->push(true);
43
        $this->list->push(50);
44
        $this->list->push("string");
45
        $this->assertEquals("string", $this->list->getLast());
46
    }
47
48
    public function testInsert() {
49
        $this->list->insert(0, 100);