/** * @covers phpDocumentor\Descriptor\DescriptorAbstract::getAuthor */ public function testAuthorTagsInheritWhenNoneArePresent() { // Arrange $authorTagDescriptor = new AuthorDescriptor('author'); $authorCollection = new Collection(array($authorTagDescriptor)); $this->fixture->getTags()->clear(); $parentProperty = $this->whenFixtureHasParentInterface(); $parentProperty->getTags()->set('author', $authorCollection); // Act $result = $this->fixture->getAuthor(); // Assert $this->assertSame($authorCollection, $result); }