mirror of
https://github.com/danog/phpdoc-parser.git
synced 2024-11-26 20:15:11 +01:00
Regression test
This commit is contained in:
parent
4c25f7fc4d
commit
07c49b0107
@ -4392,4 +4392,22 @@ Finder::findFiles('*.php')
|
||||
$this->assertSame(Lexer::TOKEN_END, $tokens->currentTokenType());
|
||||
}
|
||||
|
||||
public function testBug132(): void
|
||||
{
|
||||
$tokens = new TokenIterator($this->lexer->tokenize('/**
|
||||
* @see \Symplify\SymfonyStaticDumper\Tests\Application\SymfonyStaticDumperApplicationTest
|
||||
*/'));
|
||||
$phpDocNode = $this->phpDocParser->parse($tokens);
|
||||
$this->assertSame('/**
|
||||
* @see \Symplify\SymfonyStaticDumper\Tests\Application\SymfonyStaticDumperApplicationTest
|
||||
*/', $phpDocNode->__toString());
|
||||
|
||||
$seeNode = $phpDocNode->children[0];
|
||||
$this->assertInstanceOf(PhpDocTagNode::class, $seeNode);
|
||||
$this->assertInstanceOf(GenericTagValueNode::class, $seeNode->value);
|
||||
|
||||
$this->assertSame('@see \Symplify\SymfonyStaticDumper\Tests\Application\SymfonyStaticDumperApplicationTest', $seeNode->__toString());
|
||||
$this->assertSame('\Symplify\SymfonyStaticDumper\Tests\Application\SymfonyStaticDumperApplicationTest', $seeNode->value->__toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user