/** * @return void * @covers \pdepend\reflection\api\StaticReflectionClass * @group reflection * @group reflection::api * @group unittest */ public function testGetStaticPropertiesReturnsExpectedKeyValueArray() { $prop0 = new StaticReflectionProperty('foo', '', StaticReflectionProperty::IS_STATIC); $prop0->initValue(new StaticReflectionValue(42)); $prop1 = new StaticReflectionProperty('bar', '', StaticReflectionProperty::IS_STATIC); $class = new StaticReflectionClass(__CLASS__, '', 0); $class->initProperties(array($prop0, $prop1)); $this->assertEquals(array('foo' => 42, 'bar' => null), $class->getStaticProperties()); }