Beispiel #1
0
 public function tearDown() {
     unlink($GLOBALS['alias_file']);
     unset($GLOBALS['alias_file']);
     //clear the cache between each tests
     Backend::clearInstances();
     EventManager::clearInstance();
 }
Beispiel #2
0
 function tearDown()
 {
     //clear the cache between each tests
     Backend::clearInstances();
     rmdir($GLOBALS['svn_prefix'] . '/' . 'toto');
     unset($GLOBALS['svn_prefix']);
     unset($GLOBALS['tmp_dir']);
     unset($GLOBALS['svn_root_file']);
     unset($GLOBALS['sys_dbname']);
     unset($GLOBALS['sys_name']);
     unset($GLOBALS['sys_dbauth_user']);
     unset($GLOBALS['sys_dbauth_passwd']);
 }
Beispiel #3
0
 function tearDown()
 {
     system('rm -rf ' . escapeshellarg($GLOBALS['cvs_prefix'] . '/TestProj'));
     system('rm -rf ' . escapeshellarg($GLOBALS['cvslock_prefix'] . '/TestProj'));
     //clear the cache between each tests
     Backend::clearInstances();
     rmdir($GLOBALS['cvs_prefix'] . '/' . 'toto');
     unset($GLOBALS['cvs_prefix']);
     unset($GLOBALS['cvslock_prefix']);
     unset($GLOBALS['tmp_dir']);
     unset($GLOBALS['cvs_cmd']);
     unset($GLOBALS['cvs_root_allow_file']);
 }
Beispiel #4
0
 function tearDown()
 {
     //clear the cache between each tests
     Backend::clearInstances();
     exec('rm -rf ' . escapeshellarg($this->tmp_dir));
     unset($GLOBALS['svn_prefix']);
     unset($GLOBALS['tmp_dir']);
     unset($GLOBALS['svn_root_file']);
     unset($GLOBALS['sys_dbname']);
     unset($GLOBALS['sys_name']);
     unset($GLOBALS['sys_dbauth_user']);
     unset($GLOBALS['sys_dbauth_passwd']);
     ForgeConfig::restore();
 }
Beispiel #5
0
 function tearDown()
 {
     //clear the cache between each tests
     Backend::clearInstances();
     $this->recurseDeleteInDir($GLOBALS['svn_prefix'] . '/toto/hooks');
     rmdir($GLOBALS['svn_prefix'] . '/toto/hooks');
     rmdir($GLOBALS['svn_prefix'] . '/toto');
     unset($GLOBALS['svn_prefix']);
     unset($GLOBALS['tmp_dir']);
     unset($GLOBALS['svn_root_file']);
     unset($GLOBALS['sys_dbname']);
     unset($GLOBALS['sys_name']);
     unset($GLOBALS['sys_dbauth_user']);
     unset($GLOBALS['sys_dbauth_passwd']);
     ForgeConfig::restore();
 }
Beispiel #6
0
 function tearDown()
 {
     //clear the cache between each tests
     Backend::clearInstances();
     unset($GLOBALS['homedir_prefix']);
     unset($GLOBALS['grpdir_prefix']);
     unset($GLOBALS['codendi_shell_skel']);
     unset($GLOBALS['tmp_dir']);
     unset($GLOBALS['ftp_frs_dir_prefix']);
     unset($GLOBALS['ftp_anon_dir_prefix']);
     unset($GLOBALS['sys_file_deletion_delay']);
     unset($GLOBALS['sys_custom_incdir']);
     unset($GLOBALS['sys_incdir']);
     $logfile = $GLOBALS['codendi_log'] . '/codendi_syslog';
     if (is_file($logfile)) {
         unlink($logfile);
     }
     unset($GLOBALS['codendi_log']);
 }
Beispiel #7
0
 function tearDown() {
     //clear the cache between each tests
     Backend::clearInstances();
     EventManager::clearInstance();
 }
Beispiel #8
0
 function tearDown()
 {
     unset($GLOBALS['alias_file']);
     //clear the cache between each tests
     Backend::clearInstances();
 }