mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Merge pull request #983 from Muhammad-Sarfaraz/patch-1
Polishing Up "TestDox.php' PHPDoc Blocks for Clarity
This commit is contained in:
@ -15,12 +15,11 @@ final class TestDox implements AddsAnnotations
|
|||||||
public function __invoke(TestCaseMethodFactory $method, array $annotations): array
|
public function __invoke(TestCaseMethodFactory $method, array $annotations): array
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* escapes docblock according to
|
* Escapes docblock according to
|
||||||
* https://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#basics.desc
|
* https://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#basics.desc
|
||||||
*
|
*
|
||||||
* note: '@' escaping is not needed as it cannot be the first character of the line (it always starts with @testdox
|
* Note: '@' escaping is not needed as it cannot be the first character of the line (it always starts with @testdox).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
assert($method->description !== null);
|
assert($method->description !== null);
|
||||||
$methodDescription = str_replace('*/', '{@*}', $method->description);
|
$methodDescription = str_replace('*/', '{@*}', $method->description);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user