From 352a94fa26e11ffd9c443ceaa5096795a3ac6c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= Date: Tue, 28 May 2024 10:34:15 +0200 Subject: [PATCH] Test: Add testcase showing unexpected PhpdocAlignFixer behavior --- tests/Integration/Fixtures/PhpDoc.correct.php.inc | 4 +++- tests/Integration/Fixtures/PhpDoc.wrong.php.inc | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Integration/Fixtures/PhpDoc.correct.php.inc b/tests/Integration/Fixtures/PhpDoc.correct.php.inc index b680816..3897179 100644 --- a/tests/Integration/Fixtures/PhpDoc.correct.php.inc +++ b/tests/Integration/Fixtures/PhpDoc.correct.php.inc @@ -16,7 +16,9 @@ class PhpDoc * and possibly other Phpdoc rules. * * @param int|float $second Second parameter does have a comment, unlike the first one. - * @param string|null $third Third parameter is optional and has a default value. + * @param string|null $third Third parameter is optional and has a default value and multilne comment. Lorem + * ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies. + * Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies. * @return mixed There is also information about return type. * @throws \Exception */ diff --git a/tests/Integration/Fixtures/PhpDoc.wrong.php.inc b/tests/Integration/Fixtures/PhpDoc.wrong.php.inc index a13aede..73f803c 100644 --- a/tests/Integration/Fixtures/PhpDoc.wrong.php.inc +++ b/tests/Integration/Fixtures/PhpDoc.wrong.php.inc @@ -23,7 +23,9 @@ class PhpDoc * @param string $first * @throws \Exception * @param int|float $second Second parameter does have a comment, unlike the first one. - * @param string|null $third Third parameter is optional and has a default value. + * @param string|null $third Third parameter is optional and has a default value and multilne comment. Lorem + * ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies. + * Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies. * @return mixed There is also information about return type. */ public function veryWellDocumented(string $first, int|float $second, ?string $third = '3rd'): mixed