Skip to content

[TASK] Add testcase for tag with number in it #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tests/PHPStan/Parser/PhpDocParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ protected function setUp(): void


/**
* @dataProvider provideTagsWithNumbers
* @dataProvider provideParamTagsData
* @dataProvider provideVarTagsData
* @dataProvider provideReturnTagsData
Expand Down Expand Up @@ -3219,6 +3220,20 @@ public function dataParseTagValue(): array
];
}

public function provideTagsWithNumbers(): \Iterator
{
yield [
'OK without description and tag with number in it',
'/** @special3 Foo */',
new PhpDocNode([
new PhpDocTagNode(
'@special3',
new GenericTagValueNode('Foo')
),
]),
];
}

/**
* @dataProvider dataParseTagValue
* @param string $tag
Expand Down