/** * testGetPrototypeThrowsExceptionOnInterfaceWithoutParent * * @return void * @covers \pdepend\reflection\api\StaticReflectionMethod * @group reflection * @group reflection::api * @group unittest * @expectedException \ReflectionException */ public function testGetPrototypeThrowsExceptionOnInterfaceWithoutParent() { $method = new StaticReflectionMethod('foo', '', 42); $method->initDeclaringClass(new \ReflectionClass('\\Iterator')); $method->getPrototype(); }