@@ -27,7 +27,7 @@ public function testSimpleType(ConstantReaderInterface $reader): void
2727 constant: new \ReflectionClassConstant (ConstantReaderStub::class, 'SINGLE ' ),
2828 );
2929
30- self ::assertEquals (new NamedTypeNode (
30+ self ::assertSameType (new NamedTypeNode (
3131 name: new Identifier ('int ' ),
3232 ), $ type );
3333 }
@@ -40,7 +40,7 @@ public function testUnionType(ConstantReaderInterface $reader): void
4040 constant: new \ReflectionClassConstant (ConstantReaderStub::class, 'UNION ' ),
4141 );
4242
43- self ::assertEquals (new UnionTypeNode (
43+ self ::assertSameType (new UnionTypeNode (
4444 a: new NamedTypeNode ('string ' ),
4545 b: new NamedTypeNode ('int ' ),
4646 ), $ type );
@@ -54,7 +54,7 @@ public function testIntersectionType(ConstantReaderInterface $reader): void
5454 constant: new \ReflectionClassConstant (ConstantReaderStub::class, 'INTERSECTION ' ),
5555 );
5656
57- self ::assertEquals (new IntersectionTypeNode (
57+ self ::assertSameType (new IntersectionTypeNode (
5858 a: new NamedTypeNode (new FullQualifiedName (__ConstantReaderEnum::class)),
5959 b: new NamedTypeNode (new FullQualifiedName (\BackedEnum::class)),
6060 ), $ type );
@@ -68,7 +68,7 @@ public function testCompositeType(ConstantReaderInterface $reader): void
6868 constant: new \ReflectionClassConstant (ConstantReaderStub::class, 'COMPOSITE ' ),
6969 );
7070
71- self ::assertEquals (new UnionTypeNode (
71+ self ::assertSameType (new UnionTypeNode (
7272 a: new IntersectionTypeNode (
7373 a: new NamedTypeNode (new FullQualifiedName (__ConstantReaderEnum::class)),
7474 b: new NamedTypeNode (new FullQualifiedName (\BackedEnum::class)),
0 commit comments