From 96d2f5a07d48491a92d3ee80452bec9df1ba9086 Mon Sep 17 00:00:00 2001 From: Guanxiying Date: Wed, 28 Apr 2021 09:56:44 +0800 Subject: [PATCH] * Fix comments of public funtions. --- test/init.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/test/init.php b/test/init.php index 7fbea75295..93c3aa8626 100644 --- a/test/init.php +++ b/test/init.php @@ -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__));