本文整理汇总了PHP中CroogoTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP CroogoTestCase::tearDown方法的具体用法?PHP CroogoTestCase::tearDown怎么用?PHP CroogoTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CroogoTestCase
的用法示例。
在下文中一共展示了CroogoTestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
$path = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS . 'Example';
$Folder = new Folder($path);
$Folder->delete();
$path = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'Minimal';
$Folder = new Folder($path);
$Folder->delete();
$File = new File(CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'composer.json');
$File->delete();
}
示例2: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
$Folder = new Folder(TMP);
$files = $Folder->find('croogo_.*');
foreach ($files as $file) {
unlink(TMP . $file);
}
$Folder = new Folder(TESTS . 'test_app' . DS . 'Plugin' . DS . 'Example');
$Folder->delete();
$Folder = new Folder(TESTS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'Minimal');
$Folder->delete();
}
示例3: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
$path = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS . 'Example';
$Folder = new Folder($path);
$Folder->delete();
$path = CakePlugin::path('Extensions') . 'Test' . DS . 'test_app' . DS . 'View' . DS . 'Themed' . DS . 'Minimal';
$Folder = new Folder($path);
$Folder->delete();
if (file_exists($this->minimalPlugin)) {
unlink($this->minimalPlugin);
}
if (file_exists($this->invalidPlugin)) {
unlink($this->invalidPlugin);
}
}
示例4: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
CroogoPlugin::unload('Shops');
}
示例5: tearDown
public function tearDown()
{
parent::tearDown();
unset($this->Node);
}
示例6: tearDown
public function tearDown()
{
unset($this->FileManager);
parent::tearDown();
}
示例7: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->OrderRecord);
ClassRegistry::flush();
}
示例8: tearDown
public function tearDown()
{
parent::tearDown();
CakePlugin::unload('Translate');
unset($this->AppHelper->request, $this->AppHelper, $this->View);
}
示例9: tearDown
public function tearDown()
{
parent::tearDown();
unset($this->Setting);
}
示例10: tearDown
public function tearDown()
{
parent::tearDown();
unset($this->AppHelper->request, $this->AppHelper, $this->View);
}
示例11: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->User->request, $this->User);
}
示例12: tearDown
public function tearDown()
{
parent::tearDown();
unset($this->CroogoPlugin);
}
示例13: tearDown
public function tearDown()
{
parent::tearDown();
unset($this->CroogoTheme);
}
示例14: tearDown
public function tearDown()
{
parent::tearDown();
CroogoNav::clear(null);
CroogoNav::items('sidebar', self::$_menus);
}
示例15: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
$Folder = new Folder(CakePlugin::path('Croogo') . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS . 'Example');
$Folder->delete();
}