Skip to content

Commit 9c124a7

Browse files
committed
Add empty comment test
1 parent 54836c6 commit 9c124a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: tests/Unit/CommentParserTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,14 @@ public function testNonWrappedComment(CommentParserInterface $parser, string $de
155155
actual: $this->parseAsArray($parser, $docBlock, $delimiter),
156156
);
157157
}
158+
159+
#[DataProvider('parserWithVariantDelimitersDataProvider')]
160+
public function testEmptyComment(CommentParserInterface $parser, string $delimiter): void
161+
{
162+
self::assertSame([0 => ''], $this->parseAsArray(
163+
parser: $parser,
164+
docblock: '',
165+
delimiter: $delimiter,
166+
));
167+
}
158168
}

0 commit comments

Comments
 (0)