Skip to content

Commit 9117b48

Browse files
committed
Upgrading PHPUnit format to latest version
1 parent 3efc8fd commit 9117b48

File tree

2 files changed

+30
-36
lines changed

2 files changed

+30
-36
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
install-args: ['', '--prefer-lowest']
19-
php-version: ['8.1', '8.2']
18+
include:
19+
- install-args: "--prefer-lowest"
20+
php-version: "8.1"
21+
- install-args: ""
22+
php-version: "8.1"
23+
- install-args: ""
24+
php-version: "8.2"
2025
fail-fast: false
2126

2227
steps:

phpunit.xml.dist

Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,25 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
bootstrap="vendor/autoload.php"
12-
>
13-
<testsuites>
14-
<testsuite name="Test Suite">
15-
<directory>./tests/</directory>
16-
</testsuite>
17-
</testsuites>
18-
19-
<php>
20-
<env name="APP_KEY" value="9E6B382F19C53C5327840752500B0260"/>
21-
<env name="APP_DEBUG" value="true"/>
22-
</php>
23-
24-
<filter>
25-
<whitelist processUncoveredFilesFromWhitelist="true">
26-
<directory suffix=".php">src/</directory>
27-
<exclude>
28-
<directory suffix=".php">src/routes</directory>
29-
</exclude>
30-
</whitelist>
31-
</filter>
32-
<logging>
33-
<log type="coverage-html" target="build/coverage" />
34-
<log type="coverage-clover" target="build/logs/clover.xml"/>
35-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">src/</directory>
6+
</include>
7+
<exclude>
8+
<directory suffix=".php">src/routes</directory>
9+
</exclude>
10+
<report>
11+
<clover outputFile="build/logs/clover.xml"/>
12+
<html outputDirectory="build/coverage"/>
13+
</report>
14+
</coverage>
15+
<testsuites>
16+
<testsuite name="Test Suite">
17+
<directory>./tests/</directory>
18+
</testsuite>
19+
</testsuites>
20+
<php>
21+
<env name="APP_KEY" value="9E6B382F19C53C5327840752500B0260"/>
22+
<env name="APP_DEBUG" value="true"/>
23+
</php>
24+
<logging/>
3625
</phpunit>

0 commit comments

Comments
 (0)