Skip to content

Commit 458518a

Browse files
Allow php 8 as requirement in the composer.json and migrate the phpunit config
1 parent d9d7f90 commit 458518a

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: true
1111
matrix:
1212
os: [ubuntu-latest, windows-latest]
13-
php: [7.4]
13+
php: [7.4, 8.0]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515

1616
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.4",
23+
"php": ">=7.4",
2424
"ext-dom": "*",
2525
"ext-json": "*",
2626
"phpunit/phpunit": "^8.3|^9.0",

phpunit.xml.dist

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,25 @@
99
convertWarningsToExceptions="true"
1010
processIsolation="false"
1111
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="Integration">
14-
<directory>tests/Integration</directory>
15-
</testsuite>
16-
<testsuite name="Unit">
17-
<directory>tests/Unit</directory>
18-
</testsuite>
19-
</testsuites>
20-
<filter>
21-
<whitelist>
22-
<directory suffix=".php">src/</directory>
23-
</whitelist>
24-
</filter>
25-
<logging>
26-
<log type="junit" target="build/report.junit.xml"/>
27-
<log type="coverage-html" target="build/coverage"/>
28-
<log type="coverage-text" target="build/coverage.txt"/>
29-
<log type="coverage-clover" target="build/logs/clover.xml"/>
30-
</logging>
12+
<coverage>
13+
<include>
14+
<directory suffix=".php">src/</directory>
15+
</include>
16+
<report>
17+
<clover outputFile="build/logs/clover.xml"/>
18+
<html outputDirectory="build/coverage"/>
19+
<text outputFile="build/coverage.txt"/>
20+
</report>
21+
</coverage>
22+
<testsuites>
23+
<testsuite name="Integration">
24+
<directory>tests/Integration</directory>
25+
</testsuite>
26+
<testsuite name="Unit">
27+
<directory>tests/Unit</directory>
28+
</testsuite>
29+
</testsuites>
30+
<logging>
31+
<junit outputFile="build/report.junit.xml"/>
32+
</logging>
3133
</phpunit>

0 commit comments

Comments
 (0)