mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
fix tests
This commit is contained in:
parent
c450d95727
commit
4c6abccfb2
@ -30,7 +30,7 @@ final class ClassLikesTest extends TestCase
|
||||
|
||||
public function testWillDetectClassImplementingAliasedInterface(): void
|
||||
{
|
||||
$this->classlikes->addClassAlias('Foo', 'bar');
|
||||
$this->classlikes->addClassAlias('Foo', 'Bar');
|
||||
|
||||
$classStorage = new ClassLikeStorage('Baz');
|
||||
$classStorage->class_implements['bar'] = 'Bar';
|
||||
@ -42,9 +42,9 @@ final class ClassLikesTest extends TestCase
|
||||
|
||||
public function testWillResolveAliasedAliases(): void
|
||||
{
|
||||
$this->classlikes->addClassAlias('Foo', 'bar');
|
||||
$this->classlikes->addClassAlias('Bar', 'baz');
|
||||
$this->classlikes->addClassAlias('Baz', 'qoo');
|
||||
$this->classlikes->addClassAlias('Foo', 'Bar');
|
||||
$this->classlikes->addClassAlias('Bar', 'Baz');
|
||||
$this->classlikes->addClassAlias('Baz', 'Qoo');
|
||||
|
||||
self::assertSame('Foo', $this->classlikes->getUnAliasedName('Qoo'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user