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