make phpunit run inside framework

This commit is contained in:
sunxyw
2022-03-29 00:46:17 +08:00
committed by Jerry Ma
parent 9f4b5fb14a
commit 05a3d0111b
6 changed files with 70 additions and 25 deletions

View File

@@ -12,6 +12,7 @@ use ZM\Exception\InitException;
use ZM\Utils\DataProvider;
use ZM\Utils\ZMUtil;
return;
require_once((!is_dir(__DIR__ . '/../../vendor')) ? getcwd() : (__DIR__ . '/../..')) . '/vendor/autoload.php';
try {