Repository navigation
Expand file tree
/
Copy pathphpunit.dist.xml
More file actions
47 lines (47 loc) · 2.22 KB
/
Copy pathphpunit.dist.xml
File metadata and controls
47 lines (47 loc) · 2.22 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
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<!-- file generated with AI assistance: Claude Code - 2026-11-30 21:46:11 UTC -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/Kernel/bootstrap.php"
cacheDirectory=".phpunit.cache"
colors="true"
failOnRisky="true"
failOnWarning="true"
failOnDeprecation="true"
failOnNotice="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnTestsThatTriggerNotices="true">
<testsuites>
<!-- No kernel, no database -->
<testsuite name="unit">
<directory>tests/Unit</directory>
</testsuite>
<!-- Boots tests/Kernel/TestKernel; tests in the group "database"
need the PostgreSQL or MySQL server from DATABASE_URL -->
<testsuite name="integration">
<directory>tests/Integration</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="-1"/>
<!-- UTC: a MySQL DATETIME stores no offset, so the datetime columns
are only correct when PHP writes and reads them in one zone. -->
<ini name="date.timezone" value="UTC"/>
<server name="APP_ENV" value="test"/>
<server name="KERNEL_CLASS" value="Dmstr\Webhook\Tests\Kernel\TestKernel"/>
<server name="SHELL_VERBOSITY" value="-1"/>
<!-- Default for a local PostgreSQL; an existing environment variable
(as set by the GitHub Action) takes precedence, e.g. for MySQL 8
mysql://app:app@127.0.0.1:3306/webhook_test?serverVersion=8.0.40&charset=utf8mb4.
The database name must end with "_test"
(TestDatabase::recreateSchema()). -->
<env name="DATABASE_URL" value="postgresql://app:app@127.0.0.1:5432/webhook_test?serverVersion=16&charset=utf8"/>
</php>
<!-- Notices and warnings count only when PHP raises them in src/ -->
<source restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>
</phpunit>