Code Duplication    Length = 13-13 lines in 2 locations

tests/BuilderTest.php 2 locations

@@ 156-168 (lines=13) @@
153
        }); // Duplicate
154
    }
155
    
156
    public function testGet()
157
    {
158
        $builder = $this->builderFactory();
159
        
160
        $item = $builder->create('test', Link::class, function (LinkFactory $factory) {
161
            return $factory->build();
162
        });
163
        
164
        $this->assertEquals($item, $builder->get('test'));
165
        $this->assertEquals(null, $builder->get('notFound'));
166
        $this->assertEquals($item, $builder['test']);
167
        $this->assertEquals(null, $builder['notFound']);
168
    }
169
170
    public function testGetByIndex()
171
    {
@@ 170-182 (lines=13) @@
167
        $this->assertEquals(null, $builder['notFound']);
168
    }
169
170
    public function testGetByIndex()
171
    {
172
        $builder = $this->builderFactory();
173
174
        $item = $builder->create('test', Link::class, function (LinkFactory $factory) {
175
            return $factory->build();
176
        });
177
178
        $this->assertEquals($item, $builder->getByIndex(0));
179
        $this->assertEquals(null, $builder->getByIndex(1));
180
        $this->assertEquals($item, $builder[0]);
181
        $this->assertEquals(null, $builder[1]);
182
    }
183
    
184
    public function testHas()
185
    {