diff --git a/tests/integration/InterpretingDocBlocksTest.php b/tests/integration/InterpretingDocBlocksTest.php index 1a4e7443..51f3e8f0 100644 --- a/tests/integration/InterpretingDocBlocksTest.php +++ b/tests/integration/InterpretingDocBlocksTest.php @@ -21,9 +21,13 @@ use phpDocumentor\Reflection\DocBlock\Tags\Method; use phpDocumentor\Reflection\DocBlock\Tags\MethodParameter; use phpDocumentor\Reflection\DocBlock\Tags\Param; +use phpDocumentor\Reflection\DocBlock\Tags\Return_; use phpDocumentor\Reflection\DocBlock\Tags\See; +use phpDocumentor\Reflection\PseudoTypes\ConstExpression; use phpDocumentor\Reflection\Types\Array_; use phpDocumentor\Reflection\Types\Integer; +use phpDocumentor\Reflection\Types\Mixed_; +use phpDocumentor\Reflection\Types\Self_; use phpDocumentor\Reflection\Types\String_; use phpDocumentor\Reflection\Types\Void_; use PHPUnit\Framework\TestCase; @@ -245,4 +249,23 @@ public function testInvalidTypeParamResultsInInvalidTag(): void $docblock->getTags() ); } + + public function testConstantReferenceTypes(): void + { + $docCommment = <<create($docCommment); + + self::assertEquals( + [ + new Return_(new ConstExpression(new Self_(), 'STATUS_*'), new Description('')), + ], + $docblock->getTags() + ); + } }