* [unittest] fix unittest data.

This commit is contained in:
liyang
2025-09-30 08:49:48 +08:00
parent 6f914760fd
commit 9e6f672205
+5
View File
@@ -410,6 +410,11 @@ class yaml
public function gen($rows, $isClear = true, $useCache = true)
{
list($runFileDir, $runFileName) = $this->getScriptPathAndName();
if($this->tableName == 'company' && $rows === 0)
{
echo 'the table company is not empty!' . PHP_EOL;
return false;
}
$sqlPath = sprintf("%s%sdata%ssql%s%s_%s_zd.sql", $runFileDir, DS, DS, DS, $this->tableName, $runFileName);
$scriptPath = sprintf("%s%s%s.php", $runFileDir, DS, $runFileName);