public function testGetAst()
{
$php = '<?php
function foo() {}
';
$reflector = new FunctionReflector(new StringSourceLocator($php));
$function = $reflector->reflect('foo');
$ast = $function->getAst();
$this->assertInstanceOf(Function_::class, $ast);
$this->assertSame('foo', $ast->name);
}