/** * @return void * @covers \pdepend\reflection\api\StaticReflectionClass * @group reflection * @group reflection::api * @group unittest */ public function testGetConstantsReturnsAnArrayWithInheritClassConstants() { $parent = new StaticReflectionClass(__CLASS__, '', 0); $parent->initConstants(array('T_FOO' => 42, 'T_BAR' => 23)); $child = new StaticReflectionClass(__CLASS__, '', 0); $child->initParentClass($parent); $this->assertSame(array('T_FOO' => 42, 'T_BAR' => 23), $child->getConstants()); }