当前位置: 首页>>代码示例>>PHP>>正文


PHP TaoPhpUnitTestRunner::tearDown方法代码示例

本文整理汇总了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());
 }
开发者ID:swapnilaptara,项目名称:tao-aptara-assess,代码行数:7,代码来源:SharedLibrariesRegistryTest.php

示例2: tearDown

 public function tearDown()
 {
     if ($this->item) {
         $this->item->delete();
     }
     parent::tearDown();
 }
开发者ID:oat-sa,项目名称:extension-tao-item,代码行数:7,代码来源:LocalItemSourceTest.php

示例3: tearDown

 protected function tearDown()
 {
     $this->restoreCache();
     parent::tearDown();
     if ($this->testUser instanceof core_kernel_classes_Resource) {
         $this->testUser->delete();
     }
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:8,代码来源:FsAccessTest.php

示例4: tearDown

 public function tearDown()
 {
     $this->itemClass->delete();
     foreach ($this->items as $item) {
         $item->delete();
     }
     parent::tearDown();
 }
开发者ID:oat-sa,项目名称:extension-tao-itemqti,代码行数:8,代码来源:StyleServiceTest.php

示例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);
     }
 }
开发者ID:nagyist,项目名称:extension-tao-itemqti,代码行数:10,代码来源:SharedLibrariesRegistryTest.php

示例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);
     }
 }
开发者ID:swapnilaptara,项目名称:tao-aptara-assess,代码行数:12,代码来源:FuncACLTest.php

示例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);
 }
开发者ID:nagyist,项目名称:extension-tao-theming-platform,代码行数:12,代码来源:PlatformThemingServiceTest.php

示例8: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->class->delete();
     $this->property->delete();
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:6,代码来源:SearchTest.php

示例9: tearDown

 public function tearDown()
 {
     parent::tearDown();
     tao_helpers_File::remove($this->envPath, true);
     $this->assertFalse(is_dir($this->envPath));
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:6,代码来源:FileHelperTest.php

示例10: tearDown

 public function tearDown()
 {
     parent::tearDown();
     ThemeRegistry::getRegistry()->remove('itemsTest');
     ThemeRegistry::getRegistry()->remove('testsTest');
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:6,代码来源:ThemeRegistryTest.php

示例11: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unset($this->imsManifestExtractor);
 }
开发者ID:nagyist,项目名称:extension-tao-itemqti,代码行数:5,代码来源:ImsManifestExtractionTest.php

示例12: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->credentials->delete();
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:5,代码来源:OauthTest.php

示例13: tearDown

 public function tearDown()
 {
     parent::tearDown();
 }
开发者ID:oat-sa,项目名称:extension-tao-filemanager,代码行数:4,代码来源:FileUtilsTest.php


注:本文中的oat\tao\test\TaoPhpUnitTestRunner::tearDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。