当前位置: 首页>>代码示例>>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;未经允许,请勿转载。