Files
EasySoft-ZenTaoPMS/module/cache/test/lib/cache.unittest.class.php
T
2025-09-15 15:06:11 +08:00

25 lines
523 B
PHP

<?php
declare(strict_types = 1);
class cacheTest
{
public function __construct()
{
global $tester;
$this->objectModel = $tester->loadModel('cache');
}
/**
* Test clear method.
*
* @param bool $needStart 是否需要重启缓存
* @access public
* @return mixed
*/
public function clearTest($needStart = true)
{
$result = $this->objectModel->clear($needStart);
if(dao::isError()) return dao::getError();
return $result;
}
}