/** * @covers phpDocumentor\Descriptor\MethodDescriptor::getReturn */ public function testReturnTagsInheritWhenNoneArePresent() { // Arrange $returnTagDescriptor = new AuthorDescriptor('return'); $returnCollection = new Collection(array($returnTagDescriptor)); $this->fixture->getTags()->clear(); $parentProperty = $this->whenFixtureHasMethodInParentClassWithSameName($this->fixture->getName()); $parentProperty->getTags()->set('return', $returnCollection); // Act $result = $this->fixture->getReturn(); // Assert $this->assertSame($returnCollection, $result); }