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


PHP CakeTestCase::tearDown方法代碼示例

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


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

示例1: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->ApiUserApplication);
     unset($this->testAppToken);
     Cache::clear();
     parent::tearDown();
 }
開發者ID:port80labs,項目名稱:Boxmeup,代碼行數:12,代碼來源:ApiUserApplicationTest.php

示例2: tearDown

 /**
  * Method executed after each test
  *
  */
 public function tearDown()
 {
     unset($this->Article);
     unset($this->User);
     unset($this->Tag);
     parent::tearDown();
 }
開發者ID:manzapanza,項目名稱:cakephp-api-utils,代碼行數:11,代碼來源:ContainableBehaviorTest.php

示例3: tearDown

 /**
  * End a test
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Article);
     ClassRegistry::flush();
     DebugKitDebugger::clearTimers();
 }
開發者ID:hupla78,項目名稱:Nadia,代碼行數:12,代碼來源:TimedBehaviorTest.php

示例4: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Task);
     ClassRegistry::flush();
     App::build();
     parent::tearDown();
 }
開發者ID:Chromedian,項目名稱:inventory,代碼行數:12,代碼來源:ControllerTaskTest.php

示例5: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     $_SESSION = array();
     unset($this->View, $this->Session);
     CakePlugin::unload();
     parent::tearDown();
 }
開發者ID:agashish,項目名稱:test_new,代碼行數:12,代碼來源:SessionHelperTest.php

示例6: tearDown

 /**
  * Sets up a Dbo class instance for testing
  *
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->model);
     ClassRegistry::flush();
     Configure::write('debug', $this->_debug);
 }
開發者ID:jgera,項目名稱:orangescrum,代碼行數:11,代碼來源:MysqlTest.php

示例7: tearDown

 public function tearDown()
 {
     parent::tearDown();
     //  終了した後のお掃除
     unset($this->PagematronComponent);
     unset($this->Controller);
 }
開發者ID:himeno,項目名稱:cakephp_unittest,代碼行數:7,代碼來源:PagematronComponentTest.php

示例8: tearDown

 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     if ($this->_restoreError) {
         restore_error_handler();
     }
     parent::tearDown();
 }
開發者ID:Juan09130424,項目名稱:CakePHP---Bootstrap-template,代碼行數:12,代碼來源:ErrorHandlerTest.php

示例9: tearDown

 public function tearDown()
 {
     parent::tearDown();
     // Clean up after we're done
     unset($this->Twitter);
     unset($this->Controller);
 }
開發者ID:huanjian,項目名稱:mythesis,代碼行數:7,代碼來源:TwitterComponentTest.php

示例10: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     Configure::delete('TestMailerConfig');
     unset($this->Mailer);
     ClassRegistry::flush();
     parent::tearDown();
 }
開發者ID:hiromi2424,項目名稱:mailer,代碼行數:12,代碼來源:mailer.test.php

示例11: tearDown

 /**
  * Method executed after each test
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Article);
     ClassRegistry::flush();
     CakeSession::delete('Auth');
 }
開發者ID:superstarrajini,項目名稱:cakepackages,代碼行數:12,代碼來源:CakePackagesTaggableBehaviorTest.php

示例12: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     $test = $this;
     unset($test->TblAdmin);
     unset($test->TblAdminLock);
     parent::tearDown();
 }
開發者ID:Shiro-Nwal,項目名稱:sin-kaisha-khine,代碼行數:12,代碼來源:TblAdminTest.php

示例13: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Summable);
     unset($this->Stat);
     unset($this->User);
     parent::tearDown();
 }
開發者ID:beckye67,項目名稱:Icing,代碼行數:12,代碼來源:SummableBehaviorTest.php

示例14: tearDown

 /**
  * teardown
  *
  * @return void
  **/
 function tearDown()
 {
     parent::tearDown();
     $Cleanup = new File($this->ApiConfig->path);
     $Cleanup->delete();
     unset($this->ApiConfig);
 }
開發者ID:abhishek-xicom,項目名稱:api_generator,代碼行數:12,代碼來源:ApiConfigTest.php

示例15: tearDown

/**
 * tearDown
 *
 * @return void
 */
	public function tearDown() {
		parent::tearDown();
		if (!empty($this->_case)) {
			$_GET['case'] = $this->_case;
		}
		Configure::write('App', $this->_app);
	}
開發者ID:hungnt88,項目名稱:5stars-1,代碼行數:12,代碼來源:CakeRequestTest.php


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