mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
105c6f3a1c
* Updates `slevomat/coding-standard` * Removes unused uses * Prevents unused uses * Fixes a number of symbol case mismatches
24 lines
598 B
PHP
24 lines
598 B
PHP
<?php
|
|
namespace Psalm\Tests;
|
|
|
|
use Psalm\Aliases;
|
|
use Psalm\Internal\PhpVisitor\Reflector\ClassLikeDocblockParser;
|
|
use PhpParser\Node\Stmt\Class_;
|
|
|
|
class ClassLikeDocblockParserTest extends \Psalm\Tests\TestCase
|
|
{
|
|
public function testDocblockDescription(): void
|
|
{
|
|
$doc = '/**
|
|
* Some Description
|
|
*
|
|
*/
|
|
';
|
|
$node = new Class_(null);
|
|
$php_parser_doc = new \PhpParser\Comment\Doc($doc);
|
|
$class_docblock = ClassLikeDocblockParser::parse($node, $php_parser_doc, new Aliases());
|
|
|
|
$this->assertSame('Some Description', $class_docblock->description);
|
|
}
|
|
}
|