From 66a94d1d399b24011f7a010585ec3fd8929e6448 Mon Sep 17 00:00:00 2001 From: David Jenni Date: Fri, 3 Jan 2025 20:18:28 +0100 Subject: [PATCH] tests/Indexer: add test for multiline property in doc comment --- tests/Indexer/testdata/golden/src/ClassD.php | 7 ++++++- tests/Indexer/testdata/scip-php-test/src/ClassD.php | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/Indexer/testdata/golden/src/ClassD.php b/tests/Indexer/testdata/golden/src/ClassD.php index c673b91..0f1dbe2 100644 --- a/tests/Indexer/testdata/golden/src/ClassD.php +++ b/tests/Indexer/testdata/golden/src/ClassD.php @@ -10,6 +10,11 @@ // ^^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassD#$d4. * @property-write ClassA $d5 // ^^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassD#$d5. + * @property array $d6 +// ^^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassD#$d6. */ final class ClassD extends ClassA // ^^^^^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassD# @@ -18,7 +23,7 @@ final class ClassD extends ClassA // > final class ClassD extends TestData\ClassA // > ``` // documentation -// > @property $d3
@property-read ClassB $d4
@property-write ClassA $d5
+// > @property $d3
@property-read ClassB $d4
@property-write ClassA $d5
@property array ClassA,
ClassB,
}> $d6
// ^^^^^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA# { diff --git a/tests/Indexer/testdata/scip-php-test/src/ClassD.php b/tests/Indexer/testdata/scip-php-test/src/ClassD.php index e0558bd..8218b96 100644 --- a/tests/Indexer/testdata/scip-php-test/src/ClassD.php +++ b/tests/Indexer/testdata/scip-php-test/src/ClassD.php @@ -8,6 +8,10 @@ * @property $d3 * @property-read ClassB $d4 * @property-write ClassA $d5 + * @property array $d6 */ final class ClassD extends ClassA {