Skip to content

Commit 1ac416d

Browse files
committed
Ensure docblock defaults
1 parent 3170448 commit 1ac416d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/unit/DocBlockTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,21 @@ public function testDocBlockKnowsAtWhichLineItIs() : void
193193
$this->assertSame($location, $fixture->getLocation());
194194
}
195195

196+
/**
197+
* @uses \phpDocumentor\Reflection\DocBlock\Description
198+
*
199+
* @covers ::__construct
200+
* @covers ::isTemplateStart
201+
* @covers ::isTemplateEnd
202+
*/
203+
public function testDocBlockIsNotATemplateByDefault() : void
204+
{
205+
$fixture = new DocBlock('', null, [], null, null);
206+
207+
$this->assertFalse($fixture->isTemplateStart());
208+
$this->assertFalse($fixture->isTemplateEnd());
209+
}
210+
196211
/**
197212
* @uses \phpDocumentor\Reflection\DocBlock\Description
198213
*

0 commit comments

Comments
 (0)