添加 test-bootstrap.php
Some checks failed
Run Unit Tests / test (push) Failing after 19s

This commit is contained in:
james 2025-06-03 16:43:02 +08:00
parent a3033abd95
commit 62b7e92234

10
test-bootstrap.php Normal file
View File

@ -0,0 +1,10 @@
<?php
// 全局 Composer 自动加载器PHPUnit 和其他全局包)
require '/root/.composer/vendor/autoload.php';
// 当前项目的自动加载Workerman 和你自己写的类)
$loader = require __DIR__ . '/vendor/autoload.php';
// 可选:合并命名空间
// 如果你在 composer.json 中有 autoload 配置,上面这句就能加载你的 App\ 类