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