当前位置: 首页>>代码示例>>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;未经允许,请勿转载。