private function restoreAllGlobals()
{
$superGlobalArrays = $this->globalStateSnapshot->superGlobalArrays();
$globalVariables = $this->globalStateSnapshot->globalVariables();
foreach (array_keys($globalVariables) as $key) {
if ($key != 'GLOBALS' && !in_array($key, $superGlobalArrays) && !$this->globalStateSnapshot->blacklist()->isGlobalVariableBlacklisted($key)) {
if (!isset($GLOBALS[$key])) {
$GLOBALS[$key] = $globalVariables[$key];
}
}
}
}