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