Code Duplication    Length = 10-11 lines in 2 locations

src/Test/AbstractEditableDiscoveryTest.php 2 locations

@@ 180-189 (lines=10) @@
177
        $this->assertEquals(array($binding3), $discovery->getBindings());
178
    }
179
180
    public function testRemoveBindingsWithTypeDoesNothingIfNoneFound()
181
    {
182
        $discovery = $this->createDiscovery();
183
        $discovery->addBindingType(new BindingType(Foo::clazz, self::STRING_BINDING));
184
        $discovery->removeBindings(Foo::clazz);
185
186
        $discovery = $this->loadDiscoveryFromStorage($discovery);
187
188
        $this->assertCount(0, $discovery->getBindings());
189
    }
190
191
    public function testRemoveBindingsWithTypeDoesNothingIfTypeNotFound()
192
    {
@@ 276-286 (lines=11) @@
273
        $this->assertCount(0, $discovery->getBindings());
274
    }
275
276
    public function testAddBindingType()
277
    {
278
        $type = new BindingType(Foo::clazz, self::STRING_BINDING);
279
280
        $discovery = $this->createDiscovery();
281
        $discovery->addBindingType($type);
282
283
        $discovery = $this->loadDiscoveryFromStorage($discovery);
284
285
        $this->assertEquals($type, $discovery->getBindingType(Foo::clazz));
286
    }
287
288
    public function testAddBindingTypeAfterReadingStorage()
289
    {