当前位置: 首页>>代码示例>>PHP>>正文


PHP ThinkUpUnitTestCase::tearDown方法代码示例

本文整理汇总了PHP中ThinkUpUnitTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP ThinkUpUnitTestCase::tearDown方法的具体用法?PHP ThinkUpUnitTestCase::tearDown怎么用?PHP ThinkUpUnitTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ThinkUpUnitTestCase的用法示例。


在下文中一共展示了ThinkUpUnitTestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 public function tearDown()
 {
     $this->builder1 = null;
     $this->builder2 = null;
     $this->builder3 = null;
     parent::tearDown();
 }
开发者ID:unruthless,项目名称:ThinkUp,代码行数:7,代码来源:TestOfLoginController.php

示例2: tearDown

 public function tearDown()
 {
     $this->builders = null;
     parent::tearDown();
     $this->logger->close();
     $this->DAO = null;
 }
开发者ID:ngugijames,项目名称:ThinkUp,代码行数:7,代码来源:TestOfGroupMySQLDAO.php

示例3: tearDown

 public function tearDown()
 {
     $this->builders = null;
     parent::tearDown();
     //make sure our db_type is set to the default...
     Config::getInstance()->setValue('db_type', 'mysql');
 }
开发者ID:hendrasaputra,项目名称:ThinkUp,代码行数:7,代码来源:TestOfDAOFactory.php

示例4: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->logger->close();
     // clear options cache
     PluginOptionMySQLDAO::$cached_options = array();
 }
开发者ID:unruthless,项目名称:ThinkUp,代码行数:7,代码来源:TestOfPluginOptionMySQLDAO.php

示例5: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->logger->close();
     //clear doesOwnerHaveAccessToPost query cache
     OwnerInstanceMySQLDAO::$post_access_query_cache = array();
 }
开发者ID:randi2kewl,项目名称:ThinkUp,代码行数:7,代码来源:TestOfOwnerInstanceMySQLDAO.php

示例6: tearDown

 public function tearDown()
 {
     $this->builders = null;
     $this->logger->close();
     $this->instance = null;
     $this->api = null;
     parent::tearDown();
 }
开发者ID:pepeleproso,项目名称:ThinkUp,代码行数:8,代码来源:TestOfTwitterCrawler.php

示例7: tearDown

 public function tearDown()
 {
     parent::tearDown();
     if (getenv("TEST_TIMING") == "1") {
         list($usec, $sec) = explode(" ", microtime());
         $finish = (double) $usec + (double) $sec;
         $runtime = round($finish - $this->start);
         printf($runtime . " seconds\n");
     }
 }
开发者ID:ngugijames,项目名称:ThinkUp,代码行数:10,代码来源:TestOfInstallerController.php

示例8: tearDown

 public function tearDown()
 {
     parent::tearDown();
     MockUpgradeApplicationController::$current_exception = false;
     //Clean up test installation files
     $test_app_dir = THINKUP_WEBAPP_PATH . 'test_installer';
     if (file_exists($test_app_dir)) {
         exec('rm -rf ' . $test_app_dir);
     }
     parent::tearDown();
 }
开发者ID:JWFoxJr,项目名称:ThinkUp,代码行数:11,代码来源:TestOfUpgradeApplicationController.php

示例9: tearDown

 public function tearDown() {
     parent::tearDown();
     $zipfile = THINKUP_WEBAPP_PATH . BackupDAO::CACHE_DIR . '/thinkup_db_backup.zip';
     $backup_dir = THINKUP_WEBAPP_PATH . BackupDAO::CACHE_DIR . '/backup';
     if(file_exists($zipfile)) {
         unlink($zipfile);
     }
     if(file_exists($backup_dir)) {
         $this->recursiveDelete($backup_dir);
     }
 }
开发者ID:rgoncalves,项目名称:ThinkUp,代码行数:11,代码来源:TestOfBackupMySQLDAO.php

示例10: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $config = Config::getInstance();
     $config->setValue("mandrill_api_key", "");
     // delete test email file if it exists
     $test_email = FileDataManager::getDataPath(Mailer::EMAIL);
     if (file_exists($test_email)) {
         unlink($test_email);
     }
 }
开发者ID:ngugijames,项目名称:ThinkUp,代码行数:11,代码来源:TestOfMailer.php

示例11: tearDown

 public function tearDown() {
     parent::tearDown();
     if(file_exists($this->backup_file)) {
         unlink($this->backup_file);
     }
     if(file_exists($this->backup_test)) {
         unlink($this->backup_test);
     }
     if(file_exists($this->backup_dir)) {
         unlink($this->backup_dir);
     }
 }
开发者ID:rkabir,项目名称:ThinkUp,代码行数:12,代码来源:TestOfBackupController.php

示例12: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $zipfile = FileDataManager::getBackupPath('.htthinkup_db_backup.zip');
     $backup_dir = FileDataManager::getBackupPath();
     if (file_exists($zipfile)) {
         unlink($zipfile);
     }
     if (file_exists($backup_dir)) {
         $this->recursiveDelete($backup_dir);
     }
 }
开发者ID:pepeleproso,项目名称:ThinkUp,代码行数:12,代码来源:TestOfBackupMySQLDAO.php

示例13: tearDown

 public function tearDown()
 {
     parent::tearDown();
     if (file_exists($this->backup_file)) {
         unlink($this->backup_file);
     }
     if (file_exists($this->backup_test)) {
         unlink($this->backup_test);
     }
     if (file_exists($this->backup_dir)) {
         unlink($this->backup_dir);
     }
     //set zip class requirement class name back
     BackupController::$zip_class_req = 'ZipArchive';
 }
开发者ID:randi2kewl,项目名称:ThinkUp,代码行数:15,代码来源:TestOfBackupController.php

示例14: tearDown

 public function tearDown()
 {
     if (file_exists($this->export_test)) {
         unlink($this->export_test);
     }
     self::deleteFile('posts.tmp');
     self::deleteFile('links.tmp');
     self::deleteFile('encoded_locations.tmp');
     self::deleteFile('favorites.tmp');
     self::deleteFile('follows.tmp');
     self::deleteFile('follower_count.tmp');
     self::deleteFile('users_from_posts.tmp');
     self::deleteFile('users_followees.tmp');
     self::deleteFile('users_followers.tmp');
     //set zip class requirement class name back
     BackupController::$zip_class_req = 'ZipArchive';
     $this->builders = null;
     parent::tearDown();
 }
开发者ID:rgroves,项目名称:ThinkUp,代码行数:19,代码来源:TestOfExportServiceUserDataController.php

示例15: tearDown

    public function tearDown(){
        parent::tearDown();
        $config = Config::getInstance();
        //reset app version
        $config->setValue('THINKUP_VERSION', $this->init_db_version);

        /** delete files if needed **/
        // delete token
        if(file_exists($this->token_file)) {
            unlink($this->token_file);
        }
        // delete migration test files
        if(isset($this->test_migrations) && count($this->test_migrations) > 0) {
            foreach($this->test_migrations as $file) {
                if(file_exists($file)) {
                    unlink($file);
                }
            }
            $this->test_migrations = array();
        }
    }
开发者ID:rkabir,项目名称:ThinkUp,代码行数:21,代码来源:TestOfUpgradeController.php


注:本文中的ThinkUpUnitTestCase::tearDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。