/** * @return void * @covers \pdepend\reflection\api\StaticReflectionClass * @group reflection * @group reflection::api * @group unittest */ public function testGetParentClassReturnsExpectedInstanceWhenParentExists() { $parent = new StaticReflectionClass(__CLASS__ . 'Parent', '', 0); $child = new StaticReflectionClass(__CLASS__, '', 0); $child->initParentClass($parent); $this->assertSame($parent, $child->getParentClass()); }