コード例 #1
0
 /**
  * @covers phpDocumentor\Descriptor\DescriptorAbstract::getDescription
  */
 public function testDescriptionIsAugmentedWhenInheritDocInlineTagIsPresent()
 {
     // Arrange
     $description = 'This is a description';
     $this->fixture->setDescription('Original description {@inheritDoc}');
     $parentProperty = $this->whenFixtureHasPropertyInParentClassWithSameName($this->fixture->getName());
     $parentProperty->setDescription($description);
     // Act
     $result = $this->fixture->getDescription();
     // Assert
     $this->assertSame('Original description ' . $description, $result);
 }