SensioLabs\Deptrac\Tests\DependencyEmitter\InheritanceDependencyEmitterTest::testApplyDependencies PHP Метод

testApplyDependencies() публичный Метод

    public function testApplyDependencies()
    {
        $deps = $this->getDeps(new InheritanceDependencyEmitter(), new \SplFileInfo(__DIR__ . '/Fixtures/Foo.php'));
        $this->assertCount(4, $deps);
        $this->assertContains('Foo\\Bar:6 on Foo\\BarExtends', $deps);
        $this->assertContains('Foo\\Bar:6 on Foo\\BarInterface1', $deps);
        $this->assertContains('Foo\\Bar:6 on BarInterface2', $deps);
        $this->assertContains('Foo\\Bar:8 on Foo\\SomeTrait', $deps);
    }