Skip to content

Commit 27fbc6c

Browse files
committed
tests: upgrade to phpunit 10
1 parent 3ab10cd commit 27fbc6c

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
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
@@ -32,7 +32,7 @@
3232
},
3333
"require-dev": {
3434
"orchestra/testbench": "^8.0",
35-
"phpunit/phpunit": "^9.5.28"
35+
"phpunit/phpunit": "^10.5"
3636
},
3737
"autoload": {
3838
"psr-4": {

phpunit.xml

+13-13
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"
54
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/lib/Unit/</directory>
@@ -35,4 +30,9 @@
3530
<ini name="error_reporting" value="E_ALL"/>
3631
<env name="DB_CONNECTION" value="testing"/>
3732
</php>
38-
</phpunit>
33+
<source>
34+
<include>
35+
<directory suffix=".php">src/</directory>
36+
</include>
37+
</source>
38+
</phpunit>

0 commit comments

Comments
 (0)