If you want to run api tests, you must start the http server.
tests case dir: /test/api/
php bin/swoft http:start
# OR
php bin/swoft http:start -d
php test/run.php -c phpunit.xml --testsuite apiTests
tests case dir: /test/unit/
php test/run.php -c phpunit.xml --testsuite unitTests
tests case dir: /test/httptest/
If you want to run http client tests, you must start the http server.
Can only be run inside phpstorm.