gossi\codegen\tests\utils\ReflectionUtilsTest::testFunctionBody PHP Method

testFunctionBody() public method

public testFunctionBody ( )
    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);
    }