/** * @return void * @covers \pdepend\reflection\api\StaticReflectionProperty * @group reflection * @group reflection::api * @group unittest * @expectedException \LogicException */ public function testInitDeclaringClassThrowsLogicExceptionWhenAlreadySet() { $property = new StaticReflectionProperty('foo', '', 0); $property->initDeclaringClass(new \ReflectionClass(__CLASS__)); $property->initDeclaringClass(new \ReflectionClass(__CLASS__)); }