Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit de347ed

Browse files
author
Holger Lösken
committed
Update tests, statamic and php version
- Update newer phpunit config - PHP 8 only - Statamic 3.1 See #64
1 parent 1c6eefe commit de347ed

2 files changed

Lines changed: 27 additions & 24 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.4 || ^8.0",
23+
"php": "^8.0",
2424
"ext-json": "*",
25-
"statamic/cms": "^3.0.48"
25+
"statamic/cms": "^3.1"
2626
},
2727
"require-dev": {
2828
"orchestra/testbench": "^6.15.0",

phpunit.xml.dist

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
35
backupGlobals="false"
46
backupStaticAttributes="false"
57
cacheResult="false"
68
colors="true"
79
verbose="true"
8-
convertErrorsToExceptions="true"
10+
convertErrorsToExceptions="false"
911
convertNoticesToExceptions="true"
1012
convertWarningsToExceptions="true"
1113
processIsolation="true"
12-
stopOnFailure="true">
13-
<testsuites>
14-
<testsuite name="Test Suite">
15-
<directory>tests</directory>
16-
</testsuite>
17-
</testsuites>
18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">src/</directory>
21-
</whitelist>
22-
</filter>
23-
<php>
24-
<env name="APP_ENV" value="testing"/>
25-
<env name="APP_DEBUG" value="true"/>
26-
<env name="APP_KEY" value="base64:mIRM5Fpb6DtuRIejBwkqpt3c/ovlFZsSpo66efwo3g0="/>
27-
<env name="CACHE_DRIVER" value="array"/>
28-
<env name="SESSION_DRIVER" value="array"/>
29-
<env name="QUEUE_DRIVER" value="sync"/>
30-
<env name="MAIL_DRIVER" value="array"/>
31-
</php>
14+
stopOnFailure="true"
15+
>
16+
<coverage>
17+
<include>
18+
<directory suffix=".php">src/</directory>
19+
</include>
20+
</coverage>
21+
<testsuites>
22+
<testsuite name="Test Suite">
23+
<directory>tests</directory>
24+
</testsuite>
25+
</testsuites>
26+
<php>
27+
<env name="APP_ENV" value="testing"/>
28+
<env name="APP_DEBUG" value="true"/>
29+
<env name="APP_KEY" value="base64:mIRM5Fpb6DtuRIejBwkqpt3c/ovlFZsSpo66efwo3g0="/>
30+
<env name="CACHE_DRIVER" value="array"/>
31+
<env name="SESSION_DRIVER" value="array"/>
32+
<env name="QUEUE_DRIVER" value="sync"/>
33+
<env name="MAIL_DRIVER" value="array"/>
34+
</php>
3235
</phpunit>

0 commit comments

Comments
 (0)