Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2ce4c66

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

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎tests/PHPStan/Parser/PhpDocParserTest.php‎

Lines changed: 15 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /