/** * @covers phpDocumentor\Descriptor\PropertyDescriptor::getVersion * @covers phpDocumentor\Descriptor\DescriptorAbstract::getVersion */ public function testVersionTagsInheritWhenNoneArePresent() { // Arrange $versionTagDescriptor = new VersionDescriptor('version'); $versionCollection = new Collection(array($versionTagDescriptor)); $this->fixture->getTags()->clear(); $parentProperty = $this->whenFixtureHasPropertyInParentClassWithSameName($this->fixture->getName()); $parentProperty->getTags()->set('version', $versionCollection); // Act $result = $this->fixture->getVersion(); // Assert $this->assertSame($versionCollection, $result); }