本文整理汇总了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');
}