public function testGetParentClasses()
{
$analyser = new StaticAnalyser();
$analysis = $analyser->fromFile(__DIR__ . '/Fixtures/Child.php');
$analysis->addAnalysis($analyser->fromFile(__DIR__ . '/Fixtures/GrandParent.php'));
$analysis->addAnalysis($analyser->fromFile(__DIR__ . '/Fixtures/Parent.php'));
$this->assertCount(3, $analysis->classes, '3 classes should\'ve been detected');
$superclasses = $analysis->getSuperClasses('\\AnotherNamespace\\Child');
$this->assertCount(2, $superclasses, 'Child has a chain of 2 super classes');
$this->assertSame(['\\SwaggerFixtures\\Parent', '\\SwaggerFixtures\\GrandParent'], array_keys($superclasses));
$this->assertSame(['\\SwaggerFixtures\\GrandParent'], array_keys($analysis->getSuperClasses('\\SwaggerFixtures\\Parent')));
}