本文整理汇总了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();
}
示例2: tearDown
/**
* Method executed after each test
*
*/
public function tearDown()
{
unset($this->Article);
unset($this->User);
unset($this->Tag);
parent::tearDown();
}
示例3: tearDown
/**
* End a test
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->Article);
ClassRegistry::flush();
DebugKitDebugger::clearTimers();
}
示例4: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
unset($this->Task);
ClassRegistry::flush();
App::build();
parent::tearDown();
}
示例5: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
$_SESSION = array();
unset($this->View, $this->Session);
CakePlugin::unload();
parent::tearDown();
}
示例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);
}
示例7: tearDown
public function tearDown()
{
parent::tearDown();
// 終了した後のお掃除
unset($this->PagematronComponent);
unset($this->Controller);
}
示例8: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
if ($this->_restoreError) {
restore_error_handler();
}
parent::tearDown();
}
示例9: tearDown
public function tearDown()
{
parent::tearDown();
// Clean up after we're done
unset($this->Twitter);
unset($this->Controller);
}
示例10: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
Configure::delete('TestMailerConfig');
unset($this->Mailer);
ClassRegistry::flush();
parent::tearDown();
}
示例11: tearDown
/**
* Method executed after each test
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->Article);
ClassRegistry::flush();
CakeSession::delete('Auth');
}
示例12: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
$test = $this;
unset($test->TblAdmin);
unset($test->TblAdminLock);
parent::tearDown();
}
示例13: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
unset($this->Summable);
unset($this->Stat);
unset($this->User);
parent::tearDown();
}
示例14: tearDown
/**
* teardown
*
* @return void
**/
function tearDown()
{
parent::tearDown();
$Cleanup = new File($this->ApiConfig->path);
$Cleanup->delete();
unset($this->ApiConfig);
}
示例15: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown() {
parent::tearDown();
if (!empty($this->_case)) {
$_GET['case'] = $this->_case;
}
Configure::write('App', $this->_app);
}