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

40 lines
847 B
PHP

<?php
declare(strict_types = 1);
class miscTest
{
public function __construct()
{
global $tester;
$this->objectModel = $tester->loadModel('misc');
$this->objectZen = $tester->loadZen('misc');
}
/**
* Test hello method.
*
* @access public
* @return mixed
*/
public function helloTest()
{
$result = $this->objectZen->hello();
if(dao::isError()) return dao::getError();
return $result;
}
/**
* Test encodeStatistics method.
*
* @param array $statistics
* @access public
* @return mixed
*/
public function encodeStatisticsTest($statistics = array())
{
$result = $this->objectZen->encodeStatistics($statistics);
if(dao::isError()) return dao::getError();
return $result;
}
}