本文整理匯總了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();
}
示例2: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Plugin::unload('TestPlugin');
Plugin::unload('TestTheme');
unset($this->View);
}
示例3: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Plugin::unload();
Router::fullBaseUrl('');
Configure::write('App.fullBaseUrl', 'http://localhost');
}
示例4: tearDown
/**
* Tear down method.
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Plugin::unload('Union/Core');
Plugin::unload('TestPlugin');
unset($this->ToolBar, $this->View);
}
示例5: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Plugin::unload();
ConnectionManager::drop('test_variant');
ConnectionManager::dropAlias('other_name');
}
示例6: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Plugin::unload();
Router::reload();
Router::defaultRouteClass('Cake\\Routing\\Route\\Route');
}
示例7: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->Acl);
Cache::clear(false, 'tests');
Cache::drop('tests');
}
示例8: tearDown
/**
* Tear down method.
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Plugin::unload('Union/Core');
Plugin::unload('TestPlugin');
unset($this->Controller, $this->App);
}
示例9: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Notification::drop('test');
Notification::dropTransport('debug');
Notification::dropTransport('test_smtp');
}
示例10: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
unset($this->CsvExport);
parent::tearDown();
//不要なファイルを削除する
unlink($this->test2_csv_path);
}
示例11: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
unset($this->NotificationQueue);
unset($this->NotificationContents);
TableRegistry::clear();
parent::tearDown();
}
示例12: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
DispatcherFactory::clear();
$this->_init();
unset($this->RequestHandler, $this->Controller);
}
示例13: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Configure::delete('Asset');
Plugin::unload();
unset($this->Helper, $this->View);
}
示例14: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Plugin::unload();
DispatcherFactory::clear();
$this->Case->controller = null;
}
示例15: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
Cache::drop('redis');
Cache::drop('redis_groups');
Cache::drop('redis_helper');
}