本文整理匯總了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();
}
示例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();
}
示例3: tearDown
/** Coverage: deleteRole **/
public function tearDown()
{
parent::tearDown();
$this->rs->deleteRole($this->newRole);
}
示例4: tearDown
public function tearDown()
{
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
parent::tearDown();
$this->us->deleteUser($this->newUser);
}
示例6: tearDown
/**
* @return void
*/
protected function tearDown()
{
ReflectionSessionInstance::set();
parent::tearDown();
}
示例7: tearDown
public function tearDown()
{
parent::tearDown();
$this->os->deleteOrganization($this->subOrg);
$this->os->deleteOrganization($this->testOrg);
}
示例8: tearDown
public function tearDown()
{
parent::tearDown();
$this->getIndexer()->deleteIndex('ProductForAlgoliaIntegrationTest');
$this->getIndexer()->waitForAlgoliaTasks();
}
示例9: tearDown
public function tearDown()
{
parent::tearDown();
$this->jc->repositoryService()->deleteResources($this->testFolder->uri);
$this->jc->userService()->deleteUser($this->testUser);
}
示例10: tearDown
public function tearDown()
{
parent::tearDown();
$this->characterSetList->getGenerator()->removeOutput();
}
示例11: tearDown
public function tearDown()
{
unset($this->invitationObject);
parent::tearDown();
}
示例12: tearDown
/** Coverage: deleteJob, deleteResource **/
public function tearDown()
{
parent::tearDown();
$this->js->deleteJob($this->testJob->id);
$this->rs->deleteResources($this->testFolder->uri);
}
示例13: tearDown
public function tearDown()
{
parent::tearDown();
$this->generator->removeOutput();
}
示例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();
}
}
示例15: tearDown
public function tearDown()
{
parent::tearDown();
$this->testSuccess = false;
}