assertSame('Some Description', $function_docblock->description); } public function testDocblockParamDescription(): void { $doc = '/** * Some Description * * @param string $bli The BLI tag to iterate over. * @param int $bla The blah tags * that has a very long multiline description. * * @throws \Exception * * @return bool */ '; $php_parser_doc = new \PhpParser\Comment\Doc($doc); $function_docblock = FunctionLikeDocblockParser::parse($php_parser_doc); $this->assertTrue(isset($function_docblock->params[0]['description'])); $this->assertSame('The BLI tag to iterate over.', $function_docblock->params[0]['description']); $this->assertTrue(isset($function_docblock->params[1]['description'])); $this->assertSame('The blah tags that has a very long multiline description.', $function_docblock->params[1]['description']); } }