Commit ad8c7b3a authored by alexpott's avatar alexpott

Issue #2748375 by stefan.r: BrowserTestBase fatals before showing exceptions

parent 9764ec4d
......@@ -523,8 +523,10 @@ protected function tearDown() {
}
// Restore original shutdown callbacks.
$callbacks = &drupal_register_shutdown_function();
$callbacks = $this->originalShutdownCallbacks;
if (function_exists('drupal_register_shutdown_function')) {
$callbacks = &drupal_register_shutdown_function();
$callbacks = $this->originalShutdownCallbacks;
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment