/**
  * testWithValidCallbackNotCalledAfterUnregister
  *
  * Tests if the callable function is not called after unregistering
  *
  * @access public
  * @return void
  **/
 public function testWithValidCallbackNotCalledAfterUnregister()
 {
     $unregisterableCallback = new UnregisterableCallback(function () {
         return true;
     });
     $unregisterableCallback->unregister();
     $this->assertNull($unregisterableCallback->call());
 }
 /**
  * stop
  *
  * Stops the failure catcher
  *
  * @access public
  * @return void
  **/
 public static function stop()
 {
     if (static::$failureHandler instanceof FailureHandlerInterface) {
         restore_error_handler();
         restore_exception_handler();
     }
     if (static::$shutdownCallback instanceof UnregisterableCallback) {
         static::$shutdownCallback->unregister();
     }
     static::$failureHandler = null;
     static::$shutdownCallback = null;
     static::$additionalShutdownCallback = null;
 }