Code Duplication    Length = 9-9 lines in 2 locations

test/ComposerRequireCheckerTest/NodeVisitor/DefinedSymbolCollectorFunctionalTest.php 1 location

@@ 39-47 (lines=9) @@
36
    /**
37
     * {@inheritDoc}
38
     */
39
    protected function setUp()
40
    {
41
        $this->collector = new DefinedSymbolCollector();
42
        $this->parser    = (new ParserFactory())->create(ParserFactory::PREFER_PHP7);
43
        $this->traverser = new NodeTraverser();
44
45
        $this->traverser->addVisitor(new NameResolver());
46
        $this->traverser->addVisitor($this->collector);
47
    }
48
49
    public function testWillCollectSymbolsDefinedInThisFile()
50
    {

test/ComposerRequireCheckerTest/NodeVisitor/UsedSymbolCollectorFunctionalTest.php 1 location

@@ 39-47 (lines=9) @@
36
    /**
37
     * {@inheritDoc}
38
     */
39
    protected function setUp()
40
    {
41
        $this->collector = new UsedSymbolCollector();
42
        $this->parser    = (new ParserFactory())->create(ParserFactory::PREFER_PHP7);
43
        $this->traverser = new NodeTraverser();
44
45
        $this->traverser->addVisitor(new NameResolver());
46
        $this->traverser->addVisitor($this->collector);
47
    }
48
49
    public function testWillCollectSymbolsUsedInThisFile()
50
    {