public function testInvokeThrowsExceptionWhenTryingToLocateFunction()
{
$loader = $this->createMock(ClassLoader::class);
/** @var ClassLoader $loader */
$locator = new ComposerSourceLocator($loader);
$this->assertNull($locator->locateIdentifier($this->getMockReflector(), new Identifier('foo', new IdentifierType(IdentifierType::IDENTIFIER_FUNCTION))));
}