Ejemplo n.º 1
0
 /**
  * @return void
  * @covers \pdepend\reflection\api\StaticReflectionMethod
  * @group reflection
  * @group reflection::api
  * @group unittest
  * @expectedException \LogicException
  */
 public function testInitDeclaringClassThrowsLogicExceptionWhenDeclaringClassWasAlreadySet()
 {
     $class = new \ReflectionClass(__CLASS__);
     $method = new StaticReflectionMethod('foo', '', 0);
     $method->initDeclaringClass($class);
     $method->initDeclaringClass($class);
 }