function tearDown() { ErrorGuard::instance()->setHandlers($this->handlers); }
function guard($handler) { $guard = ErrorGuard::instance(); $guard->pushHandler($handler); $guard->enable(); return $guard; }