This commit is contained in:
Jaapio
2026-01-05 20:49:06 +01:00
parent 92ecf5dcfd
commit cd04bb47b5
20 changed files with 181 additions and 10 deletions
@@ -86,7 +86,7 @@ DOCBLOCK;
/** @var Description $description */
$description;
include(__DIR__ . '/../../examples/01-interpreting-a-simple-docblock.php');
include(__DIR__ . '/../../docs/examples/01-interpreting-a-simple-docblock.php');
$descriptionText = <<<DESCRIPTION
This is a Description. A Summary and Description are separated by either
@@ -120,7 +120,7 @@ DESCRIPTION;
/** @var See[] $seeTags */
$seeTags;
include(__DIR__ . '/../../examples/02-interpreting-tags.php');
include(__DIR__ . '/../../docs/examples/02-interpreting-tags.php');
$this->assertTrue($hasSeeTag);
$this->assertCount(1, $tags);
@@ -147,7 +147,7 @@ DESCRIPTION;
/** @var string $foundDescription */
$foundDescription;
include(__DIR__ . '/../../examples/playing-with-descriptions/02-escaping.php');
include(__DIR__ . '/../../docs/examples/playing-with-descriptions/02-escaping.php');
$this->assertSame(
str_replace(
@@ -39,7 +39,7 @@ class ReconstitutingADocBlockTest extends TestCase
/** @var string $reconstitutedDocComment */
$reconstitutedDocComment;
include(__DIR__ . '/../../examples/03-reconstituting-a-docblock.php');
include(__DIR__ . '/../../docs/examples/03-reconstituting-a-docblock.php');
$this->assertSame($docComment, $reconstitutedDocComment);
}
+1 -1
View File
@@ -40,7 +40,7 @@ class UsingTagsTest extends TestCase
/** @var string $reconstitutedDocComment */
$reconstitutedDocComment;
include(__DIR__ . '/../../examples/04-adding-your-own-tag.php');
include(__DIR__ . '/../../docs/examples/04-adding-your-own-tag.php');
$this->assertInstanceOf(\MyTag::class, $customTagObjects[0]);
$this->assertSame('my-tag', $customTagObjects[0]->getName());