mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Tests with type resolver v2
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user