public function tearDown()
 {
     $this->zip->close();
     $this->archive->cleanUp();
     //`rm -rf $this->tmp_dir/import_project_*`;
     parent::tearDown();
 }
Exemplo n.º 2
0
 public function tearDown()
 {
     unset($GLOBALS['sys_force_ssl']);
     unset($GLOBALS['sys_https_host']);
     unset($GLOBALS['sys_default_domain']);
     parent::tearDown();
 }
 public function tearDown()
 {
     UserManager::clearInstance();
     ProjectManager::clearInstance();
     SystemEventManager::clearInstance();
     parent::tearDown();
 }
Exemplo n.º 4
0
 public function tearDown()
 {
     foreach ($_SESSION as $key => $nop) {
         unset($_SESSION[$key]);
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     chdir($this->oldCwd);
     system('rm -Rf ' . $this->admin_dir);
     PermissionsManager::clearInstance();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->item_id++;
     PermissionsManager::clearInstance();
     ProjectManager::clearInstance();
     Docman_ItemFactory::clearInstance($this->project->getID());
 }
 function tearDown()
 {
     parent::tearDown();
     unset($this->artlink_info_123);
     unset($this->artlink_info_321);
     unset($this->artlink_info_666);
     unset($this->artlink_info_999);
 }
Exemplo n.º 8
0
 public function tearDown()
 {
     parent::tearDown();
     $_SERVER['REQUEST_URI'] = $this->saved_request_uri;
     Tracker_ArtifactFactory::clearInstance();
     Tracker_Hierarchy_HierarchicalTrackerFactory::clearInstance();
     TrackerFactory::clearInstance();
 }
 public function tearDown()
 {
     $this->xml_security->disableExternalLoadOfEntities();
     unset($GLOBALS['sys_incdir']);
     unset($GLOBALS['sys_custom_incdir']);
     unset($GLOBALS['Language']);
     parent::tearDown();
 }
Exemplo n.º 10
0
 public function tearDown()
 {
     UserManager::clearInstance();
     unset($GLOBALS['Language']);
     unset($GLOBALS['sys_default_domain']);
     unset($GLOBALS['HTML']);
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->xml_security->disableExternalLoadOfEntities();
     foreach ($_SESSION as $key => $nop) {
         unset($_SESSION[$key]);
     }
     parent::tearDown();
 }
Exemplo n.º 12
0
 public function tearDown()
 {
     unset($GLOBALS['sys_dbhost']);
     unset($GLOBALS['sys_dbuser']);
     unset($GLOBALS['sys_dbpasswd']);
     unset($GLOBALS['sys_dbname']);
     parent::tearDown();
 }
Exemplo n.º 13
0
 public function tearDown()
 {
     unset($this->user);
     unset($this->artifact);
     unset($this->tracker);
     unset($this->formElement);
     unset($this->report);
     unset($this->url);
     parent::tearDown();
 }
Exemplo n.º 14
0
 public function tearDown()
 {
     foreach ($this->_scripts as $file => $original_filemtime) {
         touch($file, $original_filemtime);
     }
     foreach (glob($this->destination_dir . '/*.js') as $file) {
         unlink($file);
     }
     parent::tearDown();
 }
Exemplo n.º 15
0
 public function tearDown()
 {
     parent::tearDown();
     chdir($this->cwd);
     system('rm -rf ' . $this->_glAdmDirRef);
     system('rm -rf ' . $this->_glAdmDir . '/repositories/*');
     unlink($this->_glAdmDir);
     $GLOBALS['sys_https_host'] = $this->httpsHost;
     PermissionsManager::clearInstance();
 }
Exemplo n.º 16
0
 function tearDown()
 {
     $tmpdir = $GLOBALS['codendi_cache_dir'] . '/lang/';
     $fd = opendir($tmpdir);
     while (false !== ($file = readdir($fd))) {
         if (is_file($tmpdir . '/' . $file)) {
             unlink($tmpdir . '/' . $file);
         }
     }
     parent::tearDown();
 }
Exemplo n.º 17
0
 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);
 }
Exemplo n.º 18
0
 public function tearDown() {
     if ($this->cache_is_https) {
         $_SERVER['HTTPS'] = 1;
     } else {
         unset($_SERVER['HTTPS']);
     }
     $this->referer !== null ? $_SERVER['HTTP_REFERER'] = $this->referer : null;
     $this->host    !== null ? $_SERVER['HTTP_HOST']    = $this->host    : null;
     unset($GLOBALS['DEBUG_MODE']);
     parent::tearDown();
 }
 public function tearDown()
 {
     foreach (glob($this->thumbnails_dir . '/*') as $f) {
         if ($f != '.' && $f != '..') {
             unlink($f);
         }
     }
     rmdir($this->thumbnails_dir);
     ForgeConfig::restore();
     parent::tearDown();
 }
 function tearDown()
 {
     Config::restore();
     foreach (glob(dirname(__FILE__) . '/_fixtures/attachments/thumbnails/*') as $f) {
         if ($f != '.' && $f != '..') {
             unlink($f);
         }
     }
     rmdir(dirname(__FILE__) . '/_fixtures/attachments/thumbnails');
     parent::tearDown();
 }
Exemplo n.º 21
0
 function tearDown()
 {
     UserManager::clearInstance();
     unset($GLOBALS['Language']);
     unset($GLOBALS['Response']);
     unset($GLOBALS['sys_default_domain']);
     unset($GLOBALS['sys_force_ssl']);
     unset($GLOBALS['sys_https_host']);
     unset($GLOBALS['group_id']);
     unset($_REQUEST['type_of_search']);
     ForgeConfig::restore();
     parent::tearDown();
 }
Exemplo n.º 22
0
 function tearDown()
 {
     $tmpdir = $this->cache_dir . '/lang/';
     $fd = opendir($tmpdir);
     while (false !== ($file = readdir($fd))) {
         if (is_file($tmpdir . '/' . $file)) {
             unlink($tmpdir . '/' . $file);
         }
     }
     unset($GLOBALS['sys_incdir']);
     unset($GLOBALS['sys_pluginsroot']);
     unset($GLOBALS['sys_themeroot']);
     unset($GLOBALS['sys_custom_incdir']);
     unset($GLOBALS['sys_custompluginsroot']);
     unset($GLOBALS['sys_custom_themeroot']);
     ForgeConfig::restore();
     parent::tearDown();
 }
Exemplo n.º 23
0
 public function tearDown()
 {
     parent::tearDown();
     Tracker_HierarchyFactory::clearInstance();
 }
 public function tearDown()
 {
     PermissionsManager::clearInstance();
     parent::tearDown();
 }
 public function tearDown()
 {
     unset($GLOBALS['Language']);
     parent::tearDown();
 }
Exemplo n.º 26
0
 public function tearDown()
 {
     UserManager::clearInstance();
     parent::tearDown();
 }
Exemplo n.º 27
0
 public function tearDown()
 {
     ForgeConfig::restore();
     parent::tearDown();
 }
Exemplo n.º 28
0
 public function tearDown()
 {
     UserManager::clearInstance();
     Tracker_FormElementFactory::clearInstance();
     parent::tearDown();
 }
Exemplo n.º 29
0
 public function tearDown()
 {
     parent::tearDown();
 }
 public function tearDown()
 {
     exec('rm -rf ' . $this->extraction_path);
     unlink($this->archive_path);
     parent::tearDown();
 }