Code Duplication    Length = 7-7 lines in 3 locations

tests/Lists/ArrayListTest.php 1 location

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

tests/Lists/CircularLinkedListTest.php 1 location

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

tests/Lists/DoublyLinkedListTest.php 1 location

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