本文整理汇总了PHP中oat\tao\test\TaoPhpUnitTestRunner::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP TaoPhpUnitTestRunner::tearDown方法的具体用法?PHP TaoPhpUnitTestRunner::tearDown怎么用?PHP TaoPhpUnitTestRunner::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oat\tao\test\TaoPhpUnitTestRunner
的用法示例。
在下文中一共展示了TaoPhpUnitTestRunner::tearDown方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
parent::tearDown();
$ext = common_ext_ExtensionsManager::singleton()->getExtensionById('taoQtiItem');
$ext->setConfig($this->getConfigId(), array($this->getInitialMapping()));
helpers_File::remove($this->getBasePath());
}
示例2: tearDown
public function tearDown()
{
if ($this->item) {
$this->item->delete();
}
parent::tearDown();
}
示例3: tearDown
protected function tearDown()
{
$this->restoreCache();
parent::tearDown();
if ($this->testUser instanceof core_kernel_classes_Resource) {
$this->testUser->delete();
}
}
示例4: tearDown
public function tearDown()
{
$this->itemClass->delete();
foreach ($this->items as $item) {
$item->delete();
}
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
parent::tearDown();
helpers_File::remove($this->getBasePath());
//unregister all
$ids = array_keys(array_diff_key($this->getClientLibRegistryMap(), $this->initialMapping));
foreach ($ids as $id) {
ClientLibRegistry::getRegistry()->remove($id);
}
}
示例6: tearDown
public function tearDown()
{
parent::tearDown();
$userService = tao_models_classes_UserService::singleton();
$roleService = tao_models_classes_RoleService::singleton();
if ($this->user != null) {
$userService->removeUser($this->user);
}
if ($this->testRole) {
$roleService->removeRole($this->testRole);
}
}
示例7: tearDown
public function tearDown()
{
parent::tearDown();
// Restore previous Theming config...
$this->service->syncThemingConfig($this->tempConfig);
// Deal with data storage.
$dataDir = $this->service->getDataDirectory();
@unlink(rtrim($dataDir->getAbsolutePath(), "/\\") . '/data.txt');
@unlink(rtrim(sys_get_temp_dir(), "\\/") . '/tmp-platformthemingtest.txt');
@unlink(rtrim(sys_get_temp_dir(), "\\/") . '/tmp-mynewname.txt');
unset($service);
}
示例8: tearDown
public function tearDown()
{
parent::tearDown();
$this->class->delete();
$this->property->delete();
}
示例9: tearDown
public function tearDown()
{
parent::tearDown();
tao_helpers_File::remove($this->envPath, true);
$this->assertFalse(is_dir($this->envPath));
}
示例10: tearDown
public function tearDown()
{
parent::tearDown();
ThemeRegistry::getRegistry()->remove('itemsTest');
ThemeRegistry::getRegistry()->remove('testsTest');
}
示例11: tearDown
public function tearDown()
{
parent::tearDown();
unset($this->imsManifestExtractor);
}
示例12: tearDown
public function tearDown()
{
parent::tearDown();
$this->credentials->delete();
}
示例13: tearDown
public function tearDown()
{
parent::tearDown();
}