public function testFunctionBody() { $actual = ReflectionUtils::getFunctionBody(new \ReflectionFunction('wurst')); $expected = 'return \'wurst\';'; $this->assertEquals($expected, $actual); $actual = ReflectionUtils::getFunctionBody(new \ReflectionFunction('inline')); $expected = 'return \'x\';'; $this->assertEquals($expected, $actual); }