This is useful for loading a class that does not have a namespace. This is also the class required if you want to use Reflector->getClassesFromFile (which loads all classes from specified file)
Inheritance: extends AbstractSourceLocator
 public function testReturnsReflectionWhenSourceHasClass()
 {
     $fileName = __DIR__ . '/../../Fixture/NoNamespace.php';
     $locator = new SingleFileSourceLocator($fileName);
     $reflectionClass = $locator->locateIdentifier($this->getMockReflector(), new Identifier('ClassWithNoNamespace', new IdentifierType(IdentifierType::IDENTIFIER_CLASS)));
     $this->assertSame('ClassWithNoNamespace', $reflectionClass->getName());
 }
 /**
  * Find all class and function reflections in the specified file
  *
  * @param string $filename
  * @return Reflection[]
  */
 private function computeReflections($filename)
 {
     $sourceLocator = new SingleFileSourceLocator($filename);
     $reflector = new ClassReflector($sourceLocator);
     return array_merge($sourceLocator->locateIdentifiersByType($reflector, new IdentifierType(IdentifierType::IDENTIFIER_CLASS)), $sourceLocator->locateIdentifiersByType($reflector, new IdentifierType(IdentifierType::IDENTIFIER_FUNCTION)));
 }