Skip to content

Commit 5d283a8

Browse files
committed
tests: upgrade to phpunit 10
1 parent a5d2a66 commit 5d283a8

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
vendor/
22
composer.lock
3-
.phpunit.result.cache
3+
.phpunit.cache/

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"require-dev": {
3434
"laravel-json-api/testing": "^2.0",
3535
"orchestra/testbench": "^8.0",
36-
"phpunit/phpunit": "^9.5.28"
36+
"phpunit/phpunit": "^10.5"
3737
},
3838
"autoload": {
3939
"psr-4": {

phpunit.xml

+14-15
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
beStrictAboutTestsThatDoNotTestAnything="false"
4+
beStrictAboutTestsThatDoNotTestAnything="true"
65
bootstrap="vendor/autoload.php"
76
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
11-
convertDeprecationsToExceptions="true"
127
processIsolation="false"
138
stopOnError="false"
149
stopOnFailure="false"
15-
verbose="true"
16-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
10+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
11+
cacheDirectory=".phpunit.cache"
12+
backupStaticProperties="false"
13+
failOnWarning="true"
14+
failOnDeprecation="true"
15+
failOnNotice="true"
1716
>
18-
<coverage>
19-
<include>
20-
<directory suffix=".php">src/</directory>
21-
</include>
22-
</coverage>
17+
<coverage/>
2318
<testsuites>
2419
<testsuite name="Unit">
2520
<directory suffix="Test.php">./tests/Unit/</directory>
@@ -30,6 +25,10 @@
3025
</testsuites>
3126
<php>
3227
<ini name="error_reporting" value="E_ALL"/>
33-
<env name="DB_CONNECTION" value="testing"/>
3428
</php>
35-
</phpunit>
29+
<source>
30+
<include>
31+
<directory suffix=".php">src/</directory>
32+
</include>
33+
</source>
34+
</phpunit>

0 commit comments

Comments
 (0)