コード例 #1
0
ファイル: CrashReportTest.php プロジェクト: xyzz/CrashFix
 public function tearDown()
 {
     parent::tearDown();
     if (file_exists($this->_fileName)) {
         unlink($this->_fileName);
     }
 }
コード例 #2
0
ファイル: PollCommandTest.php プロジェクト: xyzz/CrashFix
 public function tearDown()
 {
     parent::tearDown();
     // Remove created temp files.
     $filePattern = Yii::app()->getRuntimePath() . "/aop*.tmp";
     foreach (glob($filePattern) as $filename) {
         unlink($filename);
     }
 }
コード例 #3
0
 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();
     }
 }
 protected function tearDown()
 {
     //        /*delete all productOrders*/
     ProductOrders::model()->deleteAll();
     /*delete all products*/
     Product::model()->deleteAll();
     /*delete all orders*/
     Orders::model()->deleteAll();
     parent::tearDown();
 }
コード例 #5
0
ファイル: BugAttachmentTest.php プロジェクト: xyzz/CrashFix
 public function tearDown()
 {
     parent::tearDown();
     @unlink($this->_fileName);
     // Get parent directory names
     $dirName = dirname($this->_fileName);
     $outerDirName = dirname($dirName);
     @rmdir($dirName);
     @rmdir($outerDirName);
 }
コード例 #6
0
 protected function tearDown()
 {
     parent::tearDown();
     // TODO: Change the autogenerated stub
 }
コード例 #7
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
コード例 #8
0
 public function tearDown()
 {
     $this->destroyMockTableAndData('test_element_mock_table');
     parent::tearDown();
 }
コード例 #9
0
ファイル: X2DbTestCase.php プロジェクト: shuvro35/X2CRM
 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();
 }
コード例 #10
0
ファイル: X2DbTestCase.php プロジェクト: shayanyi/CRM
 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();
 }
コード例 #11
0
 public function tearDown()
 {
     Yii::app()->setComponent('service', $this->orig_svcman);
     parent::tearDown();
 }
コード例 #12
0
 public function tearDown()
 {
     parent::tearDown();
     $clearAllTempTablesmethod = $this->controller->getMethod('clearAllTempTables');
     $clearAllTempTablesmethod->setAccessible(true);
     $clearAllTempTablesmethod->invoke($this->mock);
 }
コード例 #13
0
ファイル: X2DbTestCase.php プロジェクト: dsyman2/X2CRM
 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();
 }
コード例 #14
0
ファイル: TicketTest.php プロジェクト: openeyes/openeyes
 public function tearDown()
 {
     Yii::app()->setComponent('service', $this->original_service_manager);
     parent::tearDown();
 }
コード例 #15
0
 protected function tearDown()
 {
     parent::tearDown();
     fwrite(STDERR, ' tearDown ');
     // your code....
 }
コード例 #16
0
ファイル: BatchImporterTest.php プロジェクト: xyzz/CrashFix
 public function tearDown()
 {
     parent::tearDown();
 }
コード例 #17
0
ファイル: DebugInfoTest.php プロジェクト: xyzz/CrashFix
 public function tearDown()
 {
     parent::tearDown();
     @unlink($this->_fileName);
 }