From 8dd908dd6156e974b9a0f8bb4cd5ad0707830f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Wer=C5=82os?= Date: Sun, 4 Sep 2022 16:59:43 +0200 Subject: [PATCH] Add test with parenthesis --- tests/PHPStan/Parser/PhpDocParserTest.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/PHPStan/Parser/PhpDocParserTest.php b/tests/PHPStan/Parser/PhpDocParserTest.php index 5edfc67a..71bb423b 100644 --- a/tests/PHPStan/Parser/PhpDocParserTest.php +++ b/tests/PHPStan/Parser/PhpDocParserTest.php @@ -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( @@ -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")') + ), + ]), + ]; } /**