Skip to content

Commit cd5cf03

Browse files
committed
fix(tests): Fix PHPUnit 10 support
1 parent 7104d4d commit cd5cf03

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
3939

4040
- name: Execute tests
41-
run: vendor/bin/phpunit --verbose
41+
run: vendor/bin/phpunit

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/vendor/
33
composer.lock
44
.phpunit.result.cache
5+
phpunit.xml.bak
6+
.phpunit.cache

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"laravel/framework": "^6.20.26|^7.30.6|^8.0|^9.0|^10.0"
1919
},
2020
"require-dev": {
21-
"orchestra/testbench": "^v4.0|^v5.0|^v6.0|^8.0"
21+
"orchestra/testbench": "^v4.0|^v5.0|^v6.0|^v7.0|^8.0"
2222
},
2323
"autoload": {
2424
"psr-4": {

phpunit.xml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
44
bootstrap="vendor/autoload.php"
55
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
96
processIsolation="false"
107
stopOnError="false"
118
stopOnFailure="false"
12-
verbose="true"
9+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
10+
cacheDirectory=".phpunit.cache"
11+
backupStaticProperties="false"
1312
>
14-
<testsuites>
15-
<testsuite name="Package Test Suite">
16-
<directory suffix="Test.php">./tests/</directory>
17-
</testsuite>
18-
</testsuites>
13+
<testsuites>
14+
<testsuite name="Package Test Suite">
15+
<directory suffix="Test.php">./tests/</directory>
16+
</testsuite>
17+
</testsuites>
1918
</phpunit>

0 commit comments

Comments
 (0)