public function testReflectingTopLevelFunction()
{
$php = '<?php
function foo() {}
';
$functionInfo = (new Locator())->findReflection(new FunctionReflector(new StringSourceLocator($php)), new LocatedSource($php, null), $this->getIdentifier('foo', IdentifierType::IDENTIFIER_FUNCTION));
$this->assertInstanceOf(ReflectionFunction::class, $functionInfo);
}