public function testDefStaticFunction()
    {
        $code = 'echo(\'test\')';
        $generated = $this->generator->defStatic()->defLine($code)->code();
        $expected = <<<PHP
public static function testMethod()
{
    echo('test')
}
PHP;
        static::assertEquals($expected, $generated);
    }