/** * @covers phpDocumentor\Descriptor\MethodDescriptor::getCopyright * @covers phpDocumentor\Descriptor\DescriptorAbstract::getCopyright */ public function testCopyrightTagsInheritWhenNoneArePresent() { // Arrange $copyrightTagDescriptor = new TagDescriptor('copyright'); $copyrightCollection = new Collection(array($copyrightTagDescriptor)); $this->fixture->getTags()->clear(); $parentProperty = $this->whenFixtureHasMethodInParentClassWithSameName($this->fixture->getName()); $parentProperty->getTags()->set('copyright', $copyrightCollection); // Act $result = $this->fixture->getCopyright(); // Assert $this->assertSame($copyrightCollection, $result); }