Code Duplication    Length = 8-9 lines in 3 locations

tests/BuilderTest.php 3 locations

@@ 66-74 (lines=9) @@
63
        $builder->create('index', 'Index', '/', ['class' => 'main-menu'], ['class' => 'link']); // Duplicate
64
    }
65
    
66
    public function testGet()
67
    {
68
        $builder = $this->builderFactory();
69
        
70
        $item = $builder->create('test', 'Test', '/test');
71
        
72
        $this->assertEquals($item, $builder->get('test'));
73
        $this->assertEquals(null, $builder->get('notFound'));
74
    }
75
76
    public function testGetByIndex()
77
    {
@@ 76-84 (lines=9) @@
73
        $this->assertEquals(null, $builder->get('notFound'));
74
    }
75
76
    public function testGetByIndex()
77
    {
78
        $builder = $this->builderFactory();
79
80
        $item = $builder->create('test', 'Test', '/test');
81
82
        $this->assertEquals($item, $builder->getByIndex(0));
83
        $this->assertEquals(null, $builder->getByIndex(1));
84
    }
85
    
86
    public function testHas()
87
    {
@@ 102-109 (lines=8) @@
99
        $this->assertAttributeEquals(Builder::OL, 'type', $builder);
100
    }
101
    
102
    public function testAll()
103
    {
104
        $builder = $this->builderFactory();
105
        
106
        $this->assertEquals([], $builder->all());
107
        $item = $builder->create('test', 'Test', '/test');
108
        $this->assertEquals(['test' => $item], $builder->all());
109
    }
110
    
111
    public function testForget()
112
    {