PHP-TEST/test-bootstrap.php
james 62b7e92234
Some checks failed
Run Unit Tests / test (push) Failing after 19s
添加 test-bootstrap.php
2025-06-03 16:43:02 +08:00

10 lines
368 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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