public function tearDown()
    {
        // restore the previous file handler
        if ( $this->previousFileHandler !== null )
        {
            $fileINI = eZINI::instance( 'file.ini' );
            $fileINI->setVariable( 'ClusteringSettings', 'FileHandler', $this->previousFileHandler );
            $this->previousFileHandler = null;
            eZClusterFileHandler::$globalHandler = null;
        }

        parent::tearDown();
    }
 /**
  * Performs required operations before forking a process
  *
  * - disconnects DB based cluster handlers from the database
  */
 public static function preFork()
 {
     $clusterHandler = self::instance();
     // disconnect DB based cluster handlers from the database
     if ($clusterHandler instanceof ezpDatabaseBasedClusterFileHandler) {
         $clusterHandler->disconnect();
         // destroy the current handler so that it reconnects when instanciated again
         self::$globalHandler = null;
     }
 }
    public function tearDown()
    {
        // restore the previous file handler
        if ( $this->previousFileHandler !== null )
        {
            $fileINI = eZINI::instance( 'file.ini' );
            $fileINI->setVariable( 'ClusteringSettings', 'FileHandler', $this->previousFileHandler );
            $this->previousFileHandler = null;
            eZClusterFileHandler::$globalHandler = null;
        }

        if ( $this->haveToRemoveDFSPath )
        {
            eZDir::recursiveDelete( $this->DFSPath );
        }
        parent::tearDown();
    }
 public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     eZClusterFileHandler::$globalHandler = null;
     parent::tearDown();
 }