/** * @return void * @covers \pdepend\reflection\api\StaticReflectionInterface * @group reflection * @group reflection::api * @group unittest */ public function testGetConstantReturnsValueWhenConstantExists() { $interface = new StaticReflectionInterface(__CLASS__, ''); $interface->initConstants(array('T_BAR' => 42)); $this->assertEquals(42, $interface->getConstant('T_BAR')); }