mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Add docs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user