更新 tests/Test.php
Some checks failed
Run Unit Tests / test (push) Failing after 23s

This commit is contained in:
james 2025-06-03 17:09:14 +08:00
parent 52d7b706f2
commit fa7390aedb

View File

@ -1,17 +1,13 @@
<?php
require_once '/root/.composer/vendor/autoload.php';
use PHPUnit\Framework\TestCase;
// 手动加载类文件
require_once __DIR__ . '/../src/libs/MyWebSocketHandler.php';
use App\MyWebSocketHandler;
require_once __DIR__ . '/../vendor/autoload.php';
use PHPUnit\Framework\TestCase;
use App\MyWebSocketHandler;
use Workerman\Connection\TcpConnection;
use Workerman\Worker;
class MyWebSocketHandlerTest extends TestCase
{
private $handler;