當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。