Skip to content

Commit

Permalink
tests/Indexer: add test for multiline property in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrjenni committed Jan 3, 2025
1 parent f0ad491 commit 66a94d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Indexer/testdata/golden/src/ClassD.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<int, array{
* ClassA,
* ClassB,
* }> $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#
Expand All @@ -18,7 +23,7 @@ final class ClassD extends ClassA
// > final class ClassD extends TestData\ClassA
// > ```
// documentation
// > @property $d3<br>@property-read ClassB $d4<br>@property-write ClassA $d5<br>
// > @property $d3<br>@property-read ClassB $d4<br>@property-write ClassA $d5<br>@property array<int, array{<br> ClassA,<br> ClassB,<br>}> $d6<br>
// ^^^^^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#
{

Expand Down
4 changes: 4 additions & 0 deletions tests/Indexer/testdata/scip-php-test/src/ClassD.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* @property $d3
* @property-read ClassB $d4
* @property-write ClassA $d5
* @property array<int, array{
* ClassA,
* ClassB,
* }> $d6
*/
final class ClassD extends ClassA
{
Expand Down

0 comments on commit 66a94d1

Please sign in to comment.