本文整理汇总了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;
}