Code Duplication    Length = 10-10 lines in 2 locations

test/ComposerRequireCheckerTest/NodeVisitor/UsedSymbolCollectorTest.php 2 locations

@@ 297-306 (lines=10) @@
294
        $this->assertContains('FooException', $symbols);
295
    }
296
297
    public function testTraits()
298
    {
299
        $node = new TraitUse([new Name('Foo')]);
300
301
        $this->visitor->enterNode($node);
302
303
        $symbols = $this->visitor->getCollectedSymbols();
304
        $this->assertCount(1, $symbols);
305
        $this->assertContains('Foo', $symbols);
306
    }
307
308
    public function testTraitUseVisibilityAdaptation()
309
    {
@@ 320-329 (lines=10) @@
317
        $this->assertContains('Foo', $symbols);
318
    }
319
320
    public function testBeforeTraverseResetsRecordedSymbols()
321
    {
322
        $node = new Class_('Foo');
323
        $node->extends = new Name('Bar');
324
        $this->visitor->enterNode($node);
325
326
        $this->visitor->beforeTraverse([]);
327
328
        $this->assertCount(0, $this->visitor->getCollectedSymbols());
329
    }
330
}
331