@@ -26,14 +26,14 @@ private function getResolver(array $useStatements = []): ReferencesResolver
2626 #[TestDox('if no "use" stmt, then the namespace must be same as the class ' )]
2727 public function testResolveWithSimpleNameInSameNamespace (): void
2828 {
29- $ needle = new NamedTypeNode ('TestClass ' );
29+ $ needle = new NamedTypeNode ('ClassWithGroupUsesStub ' );
3030 $ haystack = new \ReflectionClass (SimpleClassStub::class);
3131
3232 $ result = $ this ->getResolver ()
3333 ->resolve ($ needle , $ haystack );
3434
3535 self ::assertInstanceOf (NamedTypeNode::class, $ result );
36- self ::assertSame ('TypeLang\Mapper\Tests\Mapping\Reference\Stub\TestClass ' , $ result ->name ->toString ());
36+ self ::assertSame ('TypeLang\Mapper\Tests\Mapping\Reference\Stub\ClassWithGroupUsesStub ' , $ result ->name ->toString ());
3737 }
3838
3939 public function testResolveWithUseStatement (): void
@@ -67,14 +67,14 @@ public function testResolveWithAliasedUseStatement(): void
6767
6868 public function testResolveWithNamespaceKeyword (): void
6969 {
70- $ needle = new NamedTypeNode ('namespace \\TestClass ' );
70+ $ needle = new NamedTypeNode ('namespace \\Attribute ' );
7171 $ haystack = new \ReflectionClass (SimpleClassStub::class);
7272
7373 $ result = $ this ->getResolver ()
7474 ->resolve ($ needle , $ haystack );
7575
7676 self ::assertInstanceOf (NamedTypeNode::class, $ result );
77- self ::assertSame ('TypeLang \\ Mapper \\ Tests \\ Mapping \\ Reference \\ Stub \\ TestClass ' , $ result ->name ->toString ());
77+ self ::assertSame ('Attribute ' , $ result ->name ->toString ());
7878 }
7979
8080 public function testResolveWithNamespaceKeywordInGlobalNamespace (): void
@@ -110,7 +110,7 @@ public function testResolveWithComplexNamespaceKeyword(): void
110110 ->resolve ($ needle , $ haystack );
111111
112112 self ::assertInstanceOf (NamedTypeNode::class, $ result );
113- self ::assertSame ('TypeLang \\ Mapper \\ Tests \\ Mapping \\ Reference \\ Stub \\ Sub \\Namespace \\TestClass ' , $ result ->name ->toString ());
113+ self ::assertSame ('Sub \\Namespace \\TestClass ' , $ result ->name ->toString ());
114114 }
115115
116116 public function testResolveWithMixedUseStatements (): void
0 commit comments