當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CDbTestCase::tearDown方法代碼示例

本文整理匯總了PHP中CDbTestCase::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP CDbTestCase::tearDown方法的具體用法?PHP CDbTestCase::tearDown怎麽用?PHP CDbTestCase::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CDbTestCase的用法示例。


在下文中一共展示了CDbTestCase::tearDown方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 public function tearDown()
 {
     parent::tearDown();
     if (file_exists($this->_fileName)) {
         unlink($this->_fileName);
     }
 }
開發者ID:xyzz,項目名稱:CrashFix,代碼行數:7,代碼來源:CrashReportTest.php

示例2: tearDown

 public function tearDown()
 {
     parent::tearDown();
     // Remove created temp files.
     $filePattern = Yii::app()->getRuntimePath() . "/aop*.tmp";
     foreach (glob($filePattern) as $filename) {
         unlink($filename);
     }
 }
開發者ID:xyzz,項目名稱:CrashFix,代碼行數:9,代碼來源:PollCommandTest.php

示例3: tearDown

 public function tearDown()
 {
     parent::tearDown();
     Yii::app()->setModules($this->orig_modules);
     Yii::setPathOfAlias('ModuleAPITestNS', null);
     Yii::setPathOfAlias('application.modules.TestModule.components', null);
     if ($this->test_event_type) {
         $this->test_event_type->noVersion()->delete();
     }
 }
開發者ID:code-4-england,項目名稱:OpenEyes,代碼行數:10,代碼來源:ModuleAPITest.php

示例4: tearDown

 protected function tearDown()
 {
     //        /*delete all productOrders*/
     ProductOrders::model()->deleteAll();
     /*delete all products*/
     Product::model()->deleteAll();
     /*delete all orders*/
     Orders::model()->deleteAll();
     parent::tearDown();
 }
開發者ID:kevindaus,項目名稱:Order-Billing-Inventory-System-Marcials-Furniture,代碼行數:10,代碼來源:WeeklySalesReportTest.php

示例5: tearDown

 public function tearDown()
 {
     parent::tearDown();
     @unlink($this->_fileName);
     // Get parent directory names
     $dirName = dirname($this->_fileName);
     $outerDirName = dirname($dirName);
     @rmdir($dirName);
     @rmdir($outerDirName);
 }
開發者ID:xyzz,項目名稱:CrashFix,代碼行數:10,代碼來源:BugAttachmentTest.php

示例6: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     // TODO: Change the autogenerated stub
 }
開發者ID:branJakJak,項目名稱:biOaypiaccount,代碼行數:5,代碼來源:MainAccountModelTest.php

示例7: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
開發者ID:openeyeswales,項目名稱:OpenEyes,代碼行數:8,代碼來源:EventTypeTest.php

示例8: tearDown

 public function tearDown()
 {
     $this->destroyMockTableAndData('test_element_mock_table');
     parent::tearDown();
 }
開發者ID:code-4-england,項目名稱:OpenEyes,代碼行數:5,代碼來源:BaseAPITest.php

示例9: tearDown

 public function tearDown()
 {
     // try to replace mocks with original components in case mocks were set during test case
     TestingAuxLib::restoreX2WebUser();
     TestingAuxLib::restoreX2AuthManager();
     TestingAuxLib::restoreController();
     self::$skipAllTests = false;
     self::$loadFixtures = X2_LOAD_FIXTURES;
     self::$loadFixturesForClassOnly = X2_LOAD_FIXTURES_FOR_CLASS_ONLY;
     if (isset($this->_oldSession)) {
         $_SESSION = $this->_oldSession;
     }
     return parent::tearDown();
 }
開發者ID:shuvro35,項目名稱:X2CRM,代碼行數:14,代碼來源:X2DbTestCase.php

示例10: tearDown

 public function tearDown()
 {
     // try to replace mocks with original components in case mocks were set during test case
     TestingAuxLib::restoreX2WebUser();
     TestingAuxLib::restoreX2AuthManager();
     return parent::tearDown();
 }
開發者ID:shayanyi,項目名稱:CRM,代碼行數:7,代碼來源:X2DbTestCase.php

示例11: tearDown

 public function tearDown()
 {
     Yii::app()->setComponent('service', $this->orig_svcman);
     parent::tearDown();
 }
開發者ID:openeyes,項目名稱:openeyes,代碼行數:5,代碼來源:PatientTicketing_APITest.php

示例12: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $clearAllTempTablesmethod = $this->controller->getMethod('clearAllTempTables');
     $clearAllTempTablesmethod->setAccessible(true);
     $clearAllTempTablesmethod->invoke($this->mock);
 }
開發者ID:openeyes,項目名稱:openeyes,代碼行數:7,代碼來源:NodExportControllerTest.php

示例13: tearDown

 public function tearDown()
 {
     // try to replace mocks with original components in case mocks were set during test case
     TestingAuxLib::restoreX2WebUser();
     TestingAuxLib::restoreX2AuthManager();
     TestingAuxLib::restoreController();
     self::$skipAllTests = false;
     self::$loadFixtures = X2_LOAD_FIXTURES;
     self::$loadFixturesForClassOnly = X2_LOAD_FIXTURES_FOR_CLASS_ONLY;
     if (isset($this->_oldSession)) {
         $_SESSION = $this->_oldSession;
     }
     if (X2_TEST_DEBUG_LEVEL > 0) {
         $timer = TestingAuxLib::getCaseTimer();
         TestingAuxLib::log("time elapsed for test case: {$timer->stop()->getTime()}");
     }
     return parent::tearDown();
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:18,代碼來源:X2DbTestCase.php

示例14: tearDown

 public function tearDown()
 {
     Yii::app()->setComponent('service', $this->original_service_manager);
     parent::tearDown();
 }
開發者ID:openeyes,項目名稱:openeyes,代碼行數:5,代碼來源:TicketTest.php

示例15: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     fwrite(STDERR, ' tearDown ');
     // your code....
 }
開發者ID:CGTAdal,項目名稱:yii-testing-app,代碼行數:6,代碼來源:ContactTest.php


注:本文中的CDbTestCase::tearDown方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。