Make split platform independend

This commit is contained in:
Jaapio
2021-08-26 22:31:30 +02:00
parent c5ac781da3
commit bca4974b0b
5 changed files with 32 additions and 23 deletions
@@ -79,7 +79,14 @@ DESCRIPTION;
$this->assertInstanceOf(DocBlock::class, $docblock);
$this->assertSame('This is an example of a summary.', $summary);
$this->assertInstanceOf(Description::class, $description);
$this->assertSame($descriptionText, $description->render());
$this->assertSame(
str_replace(
PHP_EOL,
"\n",
$descriptionText
),
$description->render()
);
$this->assertEmpty($docblock->getTags());
}
@@ -124,6 +131,9 @@ DESCRIPTION;
include(__DIR__ . '/../../examples/playing-with-descriptions/02-escaping.php');
$this->assertSame(
str_replace(
PHP_EOL,
"\n",
<<<'DESCRIPTION'
You can escape the @-sign by surrounding it with braces, for example: @. And escape a closing brace within an
inline tag by adding an opening brace in front of it like this: }.
@@ -135,7 +145,7 @@ Here are example texts where you can see how they could be used in a real life s
Do note that an {@internal inline tag that has an opening brace ({) does not break out}.
DESCRIPTION
,
),
$foundDescription
);
}