-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpunit.xml
More file actions
36 lines (33 loc) · 1.2 KB
/
Copy pathphpunit.xml
File metadata and controls
36 lines (33 loc) · 1.2 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
32
33
34
35
36
<?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="vendor/autoload.php"
colors="true"
stopOnFailure="false"
>
<testsuites>
<!-- No DB needed — always runnable -->
<testsuite name="unit">
<directory>tests/Unit</directory>
</testsuite>
<!-- Requires a real DB — set DB_DRIVER env var -->
<testsuite name="integration">
<directory>tests/Integration</directory>
</testsuite>
<!-- Both together -->
<testsuite name="all">
<directory>tests/Unit</directory>
<directory>tests/Integration</directory>
</testsuite>
</testsuites>
<php>
<!-- Override any of these via env vars or CLI -d flags -->
<env name="DB_DRIVER" value="mysql"/> <!-- sqlite | mysql | pgsql -->
<env name="DB_HOST" value="127.0.0.1"/>
<env name="DB_PORT" value="3306"/>
<env name="DB_DATABASE" value="test"/>
<env name="DB_USERNAME" value="root"/>
<env name="DB_PASSWORD" value="123456"/>
</php>
</phpunit>