Skip to content

Commit

Permalink
feat: Optimize unit tests. (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyar authored Mar 26, 2024
1 parent 70e1876 commit 7059283
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
error_reporting(E_ALL);
date_default_timezone_set('Asia/Shanghai');

! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL);

Swoole\Runtime::enableCoroutine(true);

! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));

require BASE_PATH . '/vendor/autoload.php';

! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', Hyperf\Engine\DefaultOption::hookFlags());

Hyperf\Di\ClassLoader::init();

$container = require BASE_PATH . '/config/container.php';
Expand Down

0 comments on commit 7059283

Please sign in to comment.