Code Duplication    Length = 6-6 lines in 3 locations

tests/Lists/CircularLinkedListTest.php 1 location

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

tests/Lists/DoublyLinkedListTest.php 1 location

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

tests/Lists/ArrayListTest.php 1 location

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