/** * @covers phpDocumentor\Descriptor\ConstantDescriptor::getVar */ public function testVarTagsInheritWhenNoneArePresent() { // Arrange $varTagDescriptor = new VarDescriptor('var'); $varCollection = new Collection(array($varTagDescriptor)); $this->fixture->getTags()->clear(); $parentProperty = $this->whenFixtureHasConstantInParentClassWithSameName($this->fixture->getName()); $parentProperty->getTags()->set('var', $varCollection); // Act $result = $this->fixture->getVar(); // Assert $this->assertSame($varCollection, $result); }