<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
PHPUnit 配置
|
|
跑法:cd zhunxin-api && vendor/bin/phpunit
|
|
|
|
bootstrap 里提供 env() / config() 等框架助手的桩
|
|
让单测能直接读真实 config/*.php,而不是在测试里再抄一份策略注册表 —— 抄一份就会漂移
|
|
-->
|
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
|
bootstrap="tests/bootstrap.php"
|
|
colors="true"
|
|
cacheDirectory=".phpunit.cache"
|
|
failOnWarning="true"
|
|
failOnRisky="true">
|
|
<testsuites>
|
|
<testsuite name="api">
|
|
<directory>tests</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
</phpunit>
|