classlikes = $this->project_analyzer->getCodebase()->classlikes; $this->storage_provider = $this->project_analyzer->getCodebase()->classlike_storage_provider; } public function testWillDetectClassImplementingAliasedInterface(): void { $this->classlikes->addClassAlias('Foo', 'Bar'); $classStorage = new ClassLikeStorage('Baz'); $classStorage->class_implements['bar'] = 'Bar'; $this->storage_provider->addMore(['baz' => $classStorage]); self::assertTrue($this->classlikes->classImplements('Baz', 'Foo')); } public function testWillResolveAliasedAliases(): void { $this->classlikes->addClassAlias('Foo', 'Bar'); $this->classlikes->addClassAlias('Bar', 'Baz'); $this->classlikes->addClassAlias('Baz', 'Qoo'); self::assertSame('Foo', $this->classlikes->getUnAliasedName('Qoo')); } }