Code Duplication    Length = 6-6 lines in 3 locations

tests/Lists/ArrayListTest.php 1 location

@@ 15-20 (lines=6) @@
12
        $this->list = new ArrayList();
13
    }
14
15
    public function testSize() {
16
        $this->assertEquals($this->list->size(), 0);
17
        $this->list->push(true);
18
        $this->list->push(2);
19
        $this->assertEquals($this->list->size(), 2);
20
    }
21
22
    public function testEmpty() {
23
        $this->assertTrue($this->list->empty());

tests/Lists/CircularLinkedListTest.php 1 location

@@ 15-20 (lines=6) @@
12
        $this->list = new CircularLinkedList();
13
    }
14
15
    public function testSize() {
16
        $this->assertEquals($this->list->size(), 0);
17
        $this->list->push(true);
18
        $this->list->push(2);
19
        $this->assertEquals($this->list->size(), 2);
20
    }
21
22
    public function testEmpty() {
23
        $this->assertTrue($this->list->empty());

tests/Lists/DoublyLinkedListTest.php 1 location

@@ 15-20 (lines=6) @@
12
        $this->list = new DoublyLinkedList();
13
    }
14
15
    public function testSize() {
16
        $this->assertEquals($this->list->size(), 0);
17
        $this->list->push(true);
18
        $this->list->push(2);
19
        $this->assertEquals($this->list->size(), 2);
20
    }
21
22
    public function testEmpty() {
23
        $this->assertTrue($this->list->empty());