-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpunit.xml
More file actions
31 lines (31 loc) · 1.23 KB
/
Copy pathphpunit.xml
File metadata and controls
31 lines (31 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">app</directory>
</include>
</source>
<php>
<!--
测试 env 只需写 <env> 单份:
- <env> 在 bootstrap 加载前已 putenv(tests/bootstrap.php 同时回灌 $_SERVER,供项目 get_env() 读取)
- server 子进程(php start.php start)启动时快照环境变量,靠 putenv 继承同一份测试 env
-->
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_SQLITE_DATABASE" value="runtime/testing.sqlite"/>
<env name="SERVER_LISTEN" value="http://0.0.0.0:18787"/>
<env name="SERVER_NAME" value="webman"/>
<env name="SESSION_ADAPTER" value="file"/>
<env name="QUEUE_ENABLE" value="false"/>
<env name="QUEUE_CONSUMER_ENABLE" value="false"/>
</php>
</phpunit>