/** * @return void * @covers \pdepend\reflection\api\StaticReflectionClass * @group reflection * @group reflection::api * @group unittest */ public function testHasPropertyReturnsTrueForInheritProperty() { $parent = new StaticReflectionClass(__CLASS__ . 'Parent', '', 0); $parent->initProperties(array($prop = new StaticReflectionProperty('foo', '', 0))); $child = new StaticReflectionClass(__CLASS__, '', 0); $child->initParentClass($parent); $child->initProperties(array(new StaticReflectionProperty('baz', '', 0))); $this->assertTrue($child->hasProperty('foo')); }