/**
  * @dataProvider internalSymbolsProvider
  *
  * @param string $className
  */
 public function testCanFetchInternalLocatedSource($className)
 {
     $locator = new PhpInternalSourceLocator();
     try {
         $source = $locator->__invoke(new Identifier($className, new IdentifierType(IdentifierType::IDENTIFIER_CLASS)));
         $this->assertInstanceOf(InternalLocatedSource::class, $source);
         $this->assertNotEmpty($source->getSource());
     } catch (\ReflectionException $e) {
         $this->markTestIncomplete(sprintf('Can\'t reflect class "%s" due to an internal reflection exception: "%s". Consider adding a stub class', $className, $e->getMessage()));
     }
 }
 public function testReturnsNullForFunctions()
 {
     $locator = new PhpInternalSourceLocator();
     $this->assertNull($locator->__invoke(new Identifier('foo', new IdentifierType(IdentifierType::IDENTIFIER_FUNCTION))));
 }