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