Skip to content

Commit 240eadb

Browse files
committed
Update to PHPUnit 10
1 parent fddfbad commit 240eadb

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.idea
22
.php-cs-fixer.cache
3-
.phpunit.result.cache
3+
.phpunit.cache
44
composer.phar
55
composer.lock
66
php-cs-fixer.phar

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3.2",
2020
"phpstan/phpstan": "^1.10",
21-
"phpunit/phpunit": "^9"
21+
"phpunit/phpunit": "^9 || ^10"
2222
},
2323
"autoload": {
2424
"psr-4": {

phpunit.xml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" stopOnError="false" stopOnIncomplete="false" stopOnSkipped="false" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage>
4-
<include>
5-
<directory suffix=".php">src/</directory>
6-
</include>
7-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
4+
colors="true"
5+
processIsolation="false"
6+
stopOnFailure="false"
7+
stopOnError="false"
8+
stopOnIncomplete="false"
9+
stopOnSkipped="false"
10+
bootstrap="vendor/autoload.php"
11+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
12+
cacheDirectory=".phpunit.cache"
13+
backupStaticProperties="false"
14+
>
15+
<coverage/>
816
<testsuites>
917
<testsuite name="all">
1018
<directory suffix="Test.php">tests/Unit/</directory>
@@ -18,4 +26,9 @@
1826
<directory suffix="Test.php">tests/Functional/</directory>
1927
</testsuite>
2028
</testsuites>
29+
<source>
30+
<include>
31+
<directory suffix=".php">src/</directory>
32+
</include>
33+
</source>
2134
</phpunit>

0 commit comments

Comments
 (0)