tearDown() 공개 메소드

public tearDown ( )
 public function tearDown()
 {
     while (($language = array_pop($this->createdLanguages)) !== null) {
         $this->languageService->deleteLanguage($language);
     }
     parent::tearDown();
 }
예제 #2
0
 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();
 }
 /** Coverage: deleteRole **/
 public function tearDown()
 {
     parent::tearDown();
     $this->rs->deleteRole($this->newRole);
 }
 public function tearDown()
 {
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->us->deleteUser($this->newUser);
 }
 /**
  * @return void
  */
 protected function tearDown()
 {
     ReflectionSessionInstance::set();
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->os->deleteOrganization($this->subOrg);
     $this->os->deleteOrganization($this->testOrg);
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->getIndexer()->deleteIndex('ProductForAlgoliaIntegrationTest');
     $this->getIndexer()->waitForAlgoliaTasks();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->jc->repositoryService()->deleteResources($this->testFolder->uri);
     $this->jc->userService()->deleteUser($this->testUser);
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->characterSetList->getGenerator()->removeOutput();
 }
 public function tearDown()
 {
     unset($this->invitationObject);
     parent::tearDown();
 }
 /** Coverage: deleteJob, deleteResource **/
 public function tearDown()
 {
     parent::tearDown();
     $this->js->deleteJob($this->testJob->id);
     $this->rs->deleteResources($this->testFolder->uri);
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->generator->removeOutput();
 }
예제 #14
0
파일: testApp.php 프로젝트: Zunair/xataface
<?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();
    }
}
 public function tearDown()
 {
     parent::tearDown();
     $this->testSuccess = false;
 }