Merge "output: Narrow Title type hint to LinkTarget"
[lhc/web/wiklou.git] / tests / phpunit / maintenance / MWDoxygenFilterTest.php
index 2e06d6f..edb7618 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-* @covers MWDoxygenFilter
+ * @covers MWDoxygenFilter
  */
 class MWDoxygenFilterTest extends \PHPUnit\Framework\TestCase {
 
@@ -45,6 +45,21 @@ CODE
 CODE
                ];
 
+               yield 'One-line var with type and description that starts like a variable name' => [
+                       <<<'CODE'
+<?php class MyClass {
+       /** @var array $_GET data from some thing */
+       protected $name;
+}
+CODE
+                       , <<<'CODE'
+<?php class MyClass {
+       /**  $_GET data from some thing */
+       protected array $name;
+}
+CODE
+               ];
+
                yield 'One-line var with type, name, and description' => [
                        // In this full form, Doxygen understands it just fine.
                        // No changes made.