Skip to content

Commit 7a666b8

Browse files
committed
Adds name to example tag
1 parent b439b29 commit 7a666b8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/DocBlock/Tags/Example.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function __construct($filePath, $isURI, $startingLine, $lineCount, $descr
5151
$this->filePath = $filePath;
5252
$this->startingLine = $startingLine;
5353
$this->lineCount = $lineCount;
54+
$this->name = 'example';
5455
if ($description !== null) {
5556
$this->description = trim($description);
5657
}

tests/unit/DocBlock/Tags/ExampleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public function testExampleWithoutContent()
2020
$tag = Example::create('"example1.php"');
2121
$this->assertEquals('"example1.php"', $tag->getContent());
2222
$this->assertEquals('', $tag->getDescription());
23+
<<<<<<< b439b29756959ba1476fdfa8fff748fc39528fbc
24+
=======
25+
$this->assertEquals('example', $tag->getName());
26+
>>>>>>> Adds name to example tag
2327
}
2428

2529
/**

0 commit comments

Comments
 (0)