public function tearDown()
    {
        ezpINIHelper::restoreINISettings();
        eZClusterFileHandler::resetHandler();

        parent::tearDown();
    }
 public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     if (isset($GLOBALS['eZClusterFileHandler_chosen_handler'])) {
         unset($GLOBALS['eZClusterFileHandler_chosen_handler']);
     }
     parent::tearDown();
 }
 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::resetHandler();
     }
     if ($this->haveToRemoveDFSPath) {
         eZDir::recursiveDelete($this->DFSPath);
     }
     parent::tearDown();
 }