Files
yii/tests/ut/TestApplication.php
qiang.xue 662798d8a5
2008-09-28 12:03:53 +00:00

39 lines
698 B
PHP

<?php
Yii::import('system.web.CApplication');
class TestApplication extends CApplication
{
public function processRequest()
{
}
/**
* Removes all runtime files.
*/
public function reset()
{
$runtimePath=$this->getRuntimePath();
if(is_dir($runtimePath) && ($folder=@opendir($runtimePath))!==false)
{
while($entry=@readdir($folder))
{
if($entry==='.' || $entry==='..')
continue;
$path=$runtimePath.DIRECTORY_SEPARATOR.$entry;
@unlink($path);
}
@closedir($folder);
}
}
public function loadGlobalState()
{
parent::loadGlobalState();
}
public function saveGlobalState()
{
parent::saveGlobalState();
}
}