public function tearDown()
 {
     EventManager::clearInstance();
     ProjectManager::clearInstance();
     UserManager::clearInstance();
     parent::tearDown();
 }
 public function tearDown() {
     unlink($GLOBALS['alias_file']);
     unset($GLOBALS['alias_file']);
     //clear the cache between each tests
     Backend::clearInstances();
     EventManager::clearInstance();
 }
 public function tearDown()
 {
     parent::tearDown();
     EventManager::clearInstance();
     unset($GLOBALS['homedir_prefix']);
     $backend = Backend::instance();
     $backend->recurseDeleteInDir($this->toto_home);
     rmdir($this->toto_home);
     $backend->recurseDeleteInDir($this->foobar_home);
     rmdir($this->foobar_home);
 }
 public function tearDown()
 {
     ForgeConfig::restore();
     $this->mysqli->query('DELETE FROM groups WHERE unix_group_name = "short-name"');
     unset($GLOBALS['svn_prefix']);
     unset($GLOBALS['cvs_prefix']);
     unset($GLOBALS['grpdir_prefix']);
     unset($GLOBALS['ftp_frs_dir_prefix']);
     unset($GLOBALS['ftp_anon_dir_prefix']);
     unset($GLOBALS['sys_default_domain']);
     unset($GLOBALS['sys_cookie_prefix']);
     unset($GLOBALS['sys_force_ssl']);
     $GLOBALS['sys_pluginsroot'] = $this->old_sys_pluginsroot;
     $GLOBALS['sys_custompluginsroot'] = $this->old_sys_custompluginsroot;
     EventManager::clearInstance();
     PluginManager::instance()->invalidateCache();
     PluginFactory::clearInstance();
     $GLOBALS = $this->old_globals;
     parent::tearDown();
 }
Exemple #5
0
 public function tearDown()
 {
     EventManager::clearInstance();
 }
 public function tearDown()
 {
     parent::tearDown();
     EventManager::clearInstance();
 }
Exemple #7
0
 function tearDown() {
     //clear the cache between each tests
     Backend::clearInstances();
     EventManager::clearInstance();
 }
 public function tearDown()
 {
     EventManager::clearInstance();
     ForgeConfig::restore();
     parent::tearDown();
 }