Change unit testing to match phpDocumentor itself

This commit is contained in:
Mike van Riel
2020-02-12 08:18:08 +01:00
parent 1070e666aa
commit 50e77ace68
7 changed files with 82 additions and 41 deletions
+12
View File
@@ -104,6 +104,18 @@ class DescriptionTest extends TestCase
$this->assertSame($tag2, $actualTags[1]);
}
/**
* @covers ::getBodyTemplate
*/
public function testDescriptionBodyTemplateGetter() : void
{
$body = 'See https://github.com/phpDocumentor/ReflectionDocBlock/pull/171 for more information';
$fixture = new Description($body, []);
$this->assertSame($body, $fixture->getBodyTemplate());
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Generic
* @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag