public function testGetAllClassesWhenNoneExist()
 {
     $php = '<?php
     namespace Foo;
     function a() {}
     function b() {}
     ';
     $reflector = new Generic(new StringSourceLocator($php));
     $found = $reflector->getAllByIdentifierType(new IdentifierType(IdentifierType::IDENTIFIER_CLASS));
     $this->assertInternalType('array', $found);
     $this->assertCount(0, $found);
 }
 /**
  * Get all the classes available in the scope specified by the SourceLocator.
  *
  * @return \BetterReflection\Reflection\ReflectionClass[]
  */
 public function getAllClasses()
 {
     return $this->reflector->getAllByIdentifierType(new IdentifierType(IdentifierType::IDENTIFIER_CLASS));
 }