mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Adds name to example tag
This commit is contained in:
committed by
Jaap van Otterdijk
parent
1d3a5e8585
commit
2d3d238c43
@@ -51,6 +51,7 @@ final class Example extends BaseTag
|
||||
$this->filePath = $filePath;
|
||||
$this->startingLine = $startingLine;
|
||||
$this->lineCount = $lineCount;
|
||||
$this->name = 'example';
|
||||
if ($description !== null) {
|
||||
$this->description = trim($description);
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ class ExampleTest extends \PHPUnit_Framework_TestCase
|
||||
$tag = Example::create('"example1.php"');
|
||||
$this->assertEquals('"example1.php"', $tag->getContent());
|
||||
$this->assertEquals('', $tag->getDescription());
|
||||
$this->assertEquals('example', $tag->getName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user