Code Duplication    Length = 9-10 lines in 2 locations

tests/Lists/StackTest.php 1 location

@@ 31-40 (lines=10) @@
28
        $this->stack->push(6);
29
    }
30
    
31
    public function testPush() {
32
        $this->stack = new Stack();
33
        $this->stack->push(1);
34
        $this->stack->push(2);
35
        $this->stack->push(3);
36
        $this->stack->push(4);
37
        $this->stack->push(5);
38
        $this->assertEquals($this->stack->size(), 5);
39
        $this->assertEquals($this->stack->peek(), 5);
40
    }
41
    
42
    public function testPop() {
43
        $this->stack = new Stack();

tests/Trees/TrieTreeTest.php 1 location

@@ 15-23 (lines=9) @@
12
        $this->tree = new TrieTree();
13
    }
14
15
    public function testAdd() {
16
        $this->tree->add('hello');
17
        $this->tree->add('bye');
18
        $this->assertEquals(8, $this->tree->size());
19
        $this->tree->add('hello');
20
        $this->assertEquals(8, $this->tree->size());
21
        $this->tree->add('hell');
22
        $this->assertEquals(8, $this->tree->size());
23
    }
24
25
    public function testWordCount() {
26
        $this->tree->add('hello');