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


PHP TestCase::tearDown方法代碼示例

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


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

示例1: tearDown

 /**
  * End a test
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Article);
     TableRegistry::clear();
     DebugTimer::clear();
 }
開發者ID:neilan35,項目名稱:betterwindow1,代碼行數:12,代碼來源:TimedBehaviorTest.php

示例2: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload('TestPlugin');
     Plugin::unload('TestTheme');
     unset($this->View);
 }
開發者ID:KarimaLadhani,項目名稱:cakephp,代碼行數:12,代碼來源:CellTest.php

示例3: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload();
     Router::fullBaseUrl('');
     Configure::write('App.fullBaseUrl', 'http://localhost');
 }
開發者ID:ripzappa0924,項目名稱:carte0.0.1,代碼行數:12,代碼來源:RouterTest.php

示例4: tearDown

 /**
  * Tear down method.
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload('Union/Core');
     Plugin::unload('TestPlugin');
     unset($this->ToolBar, $this->View);
 }
開發者ID:UnionCMS,項目名稱:Core,代碼行數:12,代碼來源:ToolBarHelperTest.php

示例5: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload();
     ConnectionManager::drop('test_variant');
     ConnectionManager::dropAlias('other_name');
 }
開發者ID:maitrepylos,項目名稱:nazeweb,代碼行數:12,代碼來源:ConnectionManagerTest.php

示例6: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload();
     Router::reload();
     Router::defaultRouteClass('Cake\\Routing\\Route\\Route');
 }
開發者ID:rashmi,項目名稱:newrepo,代碼行數:12,代碼來源:RouterTest.php

示例7: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Acl);
     Cache::clear(false, 'tests');
     Cache::drop('tests');
 }
開發者ID:edukondaluetg,項目名稱:acl,代碼行數:12,代碼來源:CacheDbAclTest.php

示例8: tearDown

 /**
  * Tear down method.
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload('Union/Core');
     Plugin::unload('TestPlugin');
     unset($this->Controller, $this->App);
 }
開發者ID:UnionCMS,項目名稱:Core,代碼行數:12,代碼來源:ProcessComponentTest.php

示例9: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Notification::drop('test');
     Notification::dropTransport('debug');
     Notification::dropTransport('test_smtp');
 }
開發者ID:cvo-technologies,項目名稱:cakephp-notifier,代碼行數:12,代碼來源:NotificationTest.php

示例10: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->CsvExport);
     parent::tearDown();
     //不要なファイルを削除する
     unlink($this->test2_csv_path);
 }
開發者ID:satthi,項目名稱:csv-combine-plugin-for-cakephp,代碼行數:12,代碼來源:CsvExportComponentTest.php

示例11: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->NotificationQueue);
     unset($this->NotificationContents);
     TableRegistry::clear();
     parent::tearDown();
 }
開發者ID:codekanzlei,項目名稱:cake-notifications,代碼行數:12,代碼來源:NotificationQueuesTableTest.php

示例12: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     DispatcherFactory::clear();
     $this->_init();
     unset($this->RequestHandler, $this->Controller);
 }
開發者ID:Rabp9,項目名稱:test-psi2,代碼行數:12,代碼來源:RequestHandlerComponentTest.php

示例13: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Configure::delete('Asset');
     Plugin::unload();
     unset($this->Helper, $this->View);
 }
開發者ID:Slayug,項目名稱:castor,代碼行數:12,代碼來源:HelperTest.php

示例14: tearDown

 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload();
     DispatcherFactory::clear();
     $this->Case->controller = null;
 }
開發者ID:maitrepylos,項目名稱:nazeweb,代碼行數:12,代碼來源:ControllerTestCaseTest.php

示例15: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Cache::drop('redis');
     Cache::drop('redis_groups');
     Cache::drop('redis_helper');
 }
開發者ID:ripzappa0924,項目名稱:carte0.0.1,代碼行數:12,代碼來源:RedisEngineTest.php


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