Code Duplication    Length = 12-12 lines in 2 locations

test/ComposerRequireCheckerTest/NodeVisitor/UsedSymbolCollectorTest.php 2 locations

@@ 52-63 (lines=12) @@
49
        $this->assertContains('Bar', $symbols);
50
    }
51
52
    public function testExtendingInterface()
53
    {
54
        $node = new Interface_('Foo');
55
        $node->extends = [new Name('Bar'), new Name('Baz')];
56
57
        $this->visitor->enterNode($node);
58
59
        $symbols = $this->visitor->getCollectedSymbols();
60
        $this->assertCount(2, $symbols);
61
        $this->assertContains('Bar', $symbols);
62
        $this->assertContains('Baz', $symbols);
63
    }
64
65
    public function testImplements()
66
    {
@@ 65-76 (lines=12) @@
62
        $this->assertContains('Baz', $symbols);
63
    }
64
65
    public function testImplements()
66
    {
67
        $node = new Class_('Foo');
68
        $node->implements = [new Name('Bar'), new Name('Baz')];
69
70
        $this->visitor->enterNode($node);
71
72
        $symbols = $this->visitor->getCollectedSymbols();
73
        $this->assertCount(2, $symbols);
74
        $this->assertContains('Bar', $symbols);
75
        $this->assertContains('Baz', $symbols);
76
    }
77
78
    public function testStaticCall()
79
    {