Skip to content

Commit 2ce4c66

Browse files
[TASK] Add testcase for docblock with number (#61)
Relates: #59
1 parent d2c01c1 commit 2ce4c66

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: tests/PHPStan/Parser/PhpDocParserTest.php

+15
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ protected function setUp(): void
5353

5454

5555
/**
56+
* @dataProvider provideTagsWithNumbers
5657
* @dataProvider provideParamTagsData
5758
* @dataProvider provideVarTagsData
5859
* @dataProvider provideReturnTagsData
@@ -3219,6 +3220,20 @@ public function dataParseTagValue(): array
32193220
];
32203221
}
32213222

3223+
public function provideTagsWithNumbers(): \Iterator
3224+
{
3225+
yield [
3226+
'OK without description and tag with number in it',
3227+
'/** @special3 Foo */',
3228+
new PhpDocNode([
3229+
new PhpDocTagNode(
3230+
'@special3',
3231+
new GenericTagValueNode('Foo')
3232+
),
3233+
]),
3234+
];
3235+
}
3236+
32223237
/**
32233238
* @dataProvider dataParseTagValue
32243239
* @param string $tag

0 commit comments

Comments
 (0)