當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BaseTest::tearDown方法代碼示例

本文整理匯總了PHP中BaseTest::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseTest::tearDown方法的具體用法?PHP BaseTest::tearDown怎麽用?PHP BaseTest::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BaseTest的用法示例。


在下文中一共展示了BaseTest::tearDown方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 public function tearDown()
 {
     while (($language = array_pop($this->createdLanguages)) !== null) {
         $this->languageService->deleteLanguage($language);
     }
     parent::tearDown();
 }
開發者ID:dfritschy,項目名稱:ezpublish-kernel,代碼行數:7,代碼來源:LanguageServiceMaximumSupportedLanguagesTest.php

示例2: tearDown

 function tearDown()
 {
     $app =& Dataface_Application::getInstance();
     $sql = "drop table if exists `md_test1`";
     $res = xf_db_query($sql, $app->db());
     if (!$res) {
         trigger_error(xf_db_error($app->db()), E_USER_ERROR);
     }
     $sql = "drop table if exists `md_test1__metadata`";
     $res = xf_db_query($sql, $app->db());
     if (!$res) {
         trigger_error(xf_db_error($app->db()), E_USER_ERROR);
     }
     parent::tearDown();
 }
開發者ID:Zunair,項目名稱:xataface,代碼行數:15,代碼來源:MetadataToolTest.php

示例3: tearDown

 /** Coverage: deleteRole **/
 public function tearDown()
 {
     parent::tearDown();
     $this->rs->deleteRole($this->newRole);
 }
開發者ID:alexandrinno,項目名稱:jrs-rest-php-client,代碼行數:6,代碼來源:RoleServiceTest.php

示例4: tearDown

 public function tearDown()
 {
     parent::tearDown();
 }
開發者ID:alexandrinno,項目名稱:jrs-rest-php-client,代碼行數:4,代碼來源:ImportExportServiceTest.php

示例5: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->us->deleteUser($this->newUser);
 }
開發者ID:alexandrinno,項目名稱:jrs-rest-php-client,代碼行數:5,代碼來源:AttributeServiceTest.php

示例6: tearDown

 /**
  * @return void
  */
 protected function tearDown()
 {
     ReflectionSessionInstance::set();
     parent::tearDown();
 }
開發者ID:naderman,項目名稱:pflow,代碼行數:8,代碼來源:ReflectionSessionInstanceTest.php

示例7: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->os->deleteOrganization($this->subOrg);
     $this->os->deleteOrganization($this->testOrg);
 }
開發者ID:alexandrinno,項目名稱:jrs-rest-php-client,代碼行數:6,代碼來源:OrganizationServiceTest.php

示例8: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->getIndexer()->deleteIndex('ProductForAlgoliaIntegrationTest');
     $this->getIndexer()->waitForAlgoliaTasks();
 }
開發者ID:mrardon,項目名稱:AlgoliaSearchBundle,代碼行數:6,代碼來源:AlgoliaIntegrationTest.php

示例9: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->jc->repositoryService()->deleteResources($this->testFolder->uri);
     $this->jc->userService()->deleteUser($this->testUser);
 }
開發者ID:alexandrinno,項目名稱:jrs-rest-php-client,代碼行數:6,代碼來源:PermissionServiceTest.php

示例10: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->characterSetList->getGenerator()->removeOutput();
 }
開發者ID:webignition,項目名稱:character-set-list,代碼行數:5,代碼來源:CharacterSetListTest.php

示例11: tearDown

 public function tearDown()
 {
     unset($this->invitationObject);
     parent::tearDown();
 }
開發者ID:shoaibi,項目名稱:customer-party,代碼行數:5,代碼來源:CustomerInvitationTest.php

示例12: tearDown

 /** Coverage: deleteJob, deleteResource **/
 public function tearDown()
 {
     parent::tearDown();
     $this->js->deleteJob($this->testJob->id);
     $this->rs->deleteResources($this->testFolder->uri);
 }
開發者ID:alexandrinno,項目名稱:jrs-rest-php-client,代碼行數:7,代碼來源:JobsServiceTest.php

示例13: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->generator->removeOutput();
 }
開發者ID:webignition,項目名稱:character-set-list,代碼行數:5,代碼來源:GeneratorTest.php

示例14: BaseTest

<?php

/**
 * A Test dataface application.  Used to perform unit tests on.
 */
require_once 'testconfig.php';
if (@$_REQUEST['-action'] == 'setUp') {
    require_once 'BaseTest.php';
    $test = new BaseTest();
    $test->setUp();
    unset($_REQUEST['-action']);
    unset($_GET['-action']);
} else {
    if (@$_REQUEST['-action'] == 'tearDown') {
        require_once 'BaseTest.php';
        $test = new BaseTest();
        $test->tearDown();
        unset($_REQUEST['-action']);
        unset($_GET['-action']);
        echo 'Tear down successful';
        exit;
    } else {
        require_once 'dataface-public-api.php';
        $app =& Dataface_Application::getInstance();
        $app->display();
    }
}
開發者ID:Zunair,項目名稱:xataface,代碼行數:27,代碼來源:testApp.php

示例15: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->testSuccess = false;
 }
開發者ID:alexandrinno,項目名稱:jrs-rest-php-client,代碼行數:5,代碼來源:ReportOptionsTest.php


注:本文中的BaseTest::tearDown方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。