Inheritance: implements BetterReflection\SourceLocator\Type\SourceLocator
 public function testTwoStringSourceLocatorsResolveCorrectly()
 {
     $identifier = new Identifier('Foo', new IdentifierType(IdentifierType::IDENTIFIER_CLASS));
     $locator1 = new StringSourceLocator('<?php');
     $locator2 = new StringSourceLocator('<?php class Foo {}');
     $aggregate = new AggregateSourceLocator([$locator1, $locator2]);
     $reflection = $aggregate->locateIdentifier($this->getMockReflector(), $identifier);
     $this->assertSame('Foo', $reflection->getName());
 }
 /**
  * {@inheritDoc}
  */
 public function locateIdentifiersByType(Reflector $reflector, IdentifierType $identifierType)
 {
     return $this->aggregateSourceLocator->locateIdentifiersByType($reflector, $identifierType);
 }