Skip to content

Commit 07c49b0

Browse files
committed
Regression test
1 parent 4c25f7f commit 07c49b0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: tests/PHPStan/Parser/PhpDocParserTest.php

+18
Original file line numberDiff line numberDiff line change
@@ -4392,4 +4392,22 @@ private function executeTestParseTagValue(PhpDocParser $phpDocParser, string $ta
43924392
$this->assertSame(Lexer::TOKEN_END, $tokens->currentTokenType());
43934393
}
43944394

4395+
public function testBug132(): void
4396+
{
4397+
$tokens = new TokenIterator($this->lexer->tokenize('/**
4398+
* @see \Symplify\SymfonyStaticDumper\Tests\Application\SymfonyStaticDumperApplicationTest
4399+
*/'));
4400+
$phpDocNode = $this->phpDocParser->parse($tokens);
4401+
$this->assertSame('/**
4402+
* @see \Symplify\SymfonyStaticDumper\Tests\Application\SymfonyStaticDumperApplicationTest
4403+
*/', $phpDocNode->__toString());
4404+
4405+
$seeNode = $phpDocNode->children[0];
4406+
$this->assertInstanceOf(PhpDocTagNode::class, $seeNode);
4407+
$this->assertInstanceOf(GenericTagValueNode::class, $seeNode->value);
4408+
4409+
$this->assertSame('@see \Symplify\SymfonyStaticDumper\Tests\Application\SymfonyStaticDumperApplicationTest', $seeNode->__toString());
4410+
$this->assertSame('\Symplify\SymfonyStaticDumper\Tests\Application\SymfonyStaticDumperApplicationTest', $seeNode->value->__toString());
4411+
}
4412+
43954413
}

0 commit comments

Comments
 (0)