/** * @return void * @covers \pdepend\reflection\api\StaticReflectionMethod * @group reflection * @group reflection::api * @group unittest */ public function testGetDeclaringClassReturnsPreviousSetClassInstance() { $class = new \ReflectionClass(__CLASS__); $method = new StaticReflectionMethod('foo', '', 0); $method->initDeclaringClass($class); $this->assertSame($class, $method->getDeclaringClass()); }