public function preventingFatalOnNonExistingBaseClass($className)
{
$autoload = $this->create($this->getAutoloader());
$restore = $this->noErrorExceptions();
try {
$actual = ClassExistsChecker::create($className)->existsExtendsSafe();
$restore();
$autoload->reset();
$this->assertFalse($actual);
} catch (\Exception $ex) {
$restore();
$autoload->reset();
$this->fail('An exception has been thrown');
}
}