Skip to content

Commit

Permalink
Add test with parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos authored and ondrejmirtes committed Sep 4, 2022
1 parent f069ed8 commit 8dd908d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/PHPStan/Parser/PhpDocParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4463,7 +4463,7 @@ public function provideTagsWithNumbers(): Iterator
public function provideTagsWithBackslash(): Iterator
{
yield [
'OK without description and tag with backslash in it',
'OK without description and tag with backslashes in it',
'/** @ORM\Mapping\Entity User */',
new PhpDocNode([
new PhpDocTagNode(
Expand All @@ -4472,6 +4472,17 @@ public function provideTagsWithBackslash(): Iterator
),
]),
];

yield [
'OK without description and tag with backslashes in it and parenthesis',
'/** @ORM\Mapping\JoinColumn(name="column_id", referencedColumnName="id") */',
new PhpDocNode([
new PhpDocTagNode(
'@ORM\Mapping\JoinColumn',
new GenericTagValueNode('(name="column_id", referencedColumnName="id")')
),
]),
];
}

/**
Expand Down

0 comments on commit 8dd908d

Please sign in to comment.