From 6907decc71103f95f5b93b746c1f284dafc529d2 Mon Sep 17 00:00:00 2001 From: Michael Knappe Date: Tue, 30 Apr 2019 13:22:06 +0200 Subject: [PATCH] added test for generic tag to parse description with `0` as expected --- tests/integration/DocblocksWithAnnotationsTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/integration/DocblocksWithAnnotationsTest.php b/tests/integration/DocblocksWithAnnotationsTest.php index 06e5081..139248b 100644 --- a/tests/integration/DocblocksWithAnnotationsTest.php +++ b/tests/integration/DocblocksWithAnnotationsTest.php @@ -44,4 +44,18 @@ DOCCOMMENT; $this->assertCount(3, $docblock->getTags()); } + + public function testDocblockWithAnnotationHavingZeroValue(): void + { + $docComment = <<create($docComment); + + $this->assertSame(0, printf('%i', $docblock->getTagsByName('my-tag'))); + } }