Tests with type resolver v2

This commit is contained in:
Jaapio
2025-12-22 23:04:25 +01:00
parent d075d95973
commit 97db20d534
6 changed files with 306 additions and 234 deletions
+2 -2
View File
@@ -200,8 +200,8 @@ class ReturnTest extends TestCase
$fixture = Return_::create('array<string, string> My Description', $resolver, $descriptionFactory, $context);
$this->assertSame('array<string,string> My Description', (string) $fixture);
$this->assertEquals('array<string,string>', $fixture->getType());
$this->assertSame('array<string, string> My Description', (string) $fixture);
$this->assertEquals('array<string, string>', $fixture->getType());
$this->assertSame($description, $fixture->getDescription());
}
+2 -2
View File
@@ -206,8 +206,8 @@ class ThrowsTest extends TestCase
$fixture = Throws::create('array<string, string> My Description', $resolver, $descriptionFactory, $context);
$this->assertSame('array<string,string> My Description', (string) $fixture);
$this->assertEquals('array<string,string>', $fixture->getType());
$this->assertSame('array<string, string> My Description', (string) $fixture);
$this->assertEquals('array<string, string>', $fixture->getType());
$this->assertSame($description, $fixture->getDescription());
}