public function testReflectingTopLevelClass()
{
$php = '<?php
class Foo {}
';
$classInfo = (new Locator())->findReflection(new ClassReflector(new StringSourceLocator($php)), new LocatedSource($php, null), $this->getIdentifier('Foo', IdentifierType::IDENTIFIER_CLASS));
$this->assertInstanceOf(ReflectionClass::class, $classInfo);
}