* Fix comments of public funtions.

This commit is contained in:
Guanxiying
2021-04-28 09:56:44 +08:00
parent 3264f6146f
commit 96d2f5a07d
+24
View File
@@ -29,6 +29,13 @@ $tester = $app->loadCommon();
$config->zendataRoot = dirname(__FILE__) . DS . 'zendata';
$config->zdPath = "/usr/local/zd/zd";
/**
* Save variable to $_result.
*
* @param mix $result
* @access public
* @return bool true
*/
function run($result)
{
global $_result;
@@ -36,6 +43,14 @@ function run($result)
return true;
}
/**
* Print expect data.
*
* @param int $key
* @param string $delimiter
* @access public
* @return void
*/
function expect($key, $delimiter = ',')
{
global $_result;
@@ -66,6 +81,15 @@ function expect($key, $delimiter = ',')
echo "\n";
}
/**
* Import data create by zendata to one table.
*
* @param string $table
* @param string $yaml
* @param int $count
* @access public
* @return void
*/
function zdImport($table, $yaml, $count = 10)
{
chdir(dirname(__FILE__));