chore(test): 引入 PHPUnit 测试基建(依赖+配置+bootstrap)

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
augushong
2026-07-18 00:12:30 +08:00
parent 1ca1f86150
commit 44621b1e9d
5 changed files with 1907 additions and 2 deletions

14
phpunit.xml.dist Normal file
View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
stopOnFailure="false"
cacheDirectory="tests/.phpunit.cache"
>
<testsuites>
<testsuite name="feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
</phpunit>