public function autoloadTerminator($notFoundClass)
{
$className = $this->className;
if (null === ($context = $this->context)) {
//@codeCoverageIgnoreStart
// sanity check, should never come here
throw new BadMethodCallException('No autoloading in place');
// @codeCoverageIgnoreStop
}
if ($notFoundClass === $className) {
return;
}
$context->stack[] = array($notFoundClass, $className);
$context->lastException = new CanNotAutoloadCollaboratorClassException(sprintf('%s for %s', $notFoundClass, $className));
throw $context->lastException;
}