public function testDebugInfoMethod() { $parsedRefMethod = new ReflectionMethod(self::STUB_CLASS, 'funcWithDocAndBody'); $originalRefMethod = new \ReflectionMethod(self::STUB_CLASS, 'funcWithDocAndBody'); $expectedValue = (array) $originalRefMethod; $this->assertSame($expectedValue, $parsedRefMethod->___debugInfo()); }