Skip to content

Commit b1aa9f0

Browse files
authored
Add support for PHPUnit 10 (codezero-be#17)
1 parent b1c53c3 commit b1aa9f0

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/phpunit.xml
33
composer.lock
44
/.phpunit.result.cache
5+
/.phpunit.cache/

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"require-dev": {
2929
"mockery/mockery": "^1.3.3",
3030
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
31-
"phpunit/phpunit": "^8.0|^9.0"
31+
"phpunit/phpunit": "^8.0|^9.0|^10.0"
3232
},
3333
"scripts": {
3434
"test": "phpunit"

phpunit.xml.dist

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +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"
10-
stopOnFailure="false">
7+
stopOnFailure="false"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
9+
cacheDirectory=".phpunit.cache"
10+
backupStaticProperties="false">
11+
<coverage>
12+
<include>
13+
<directory suffix=".php">./src</directory>
14+
</include>
15+
</coverage>
1116
<testsuites>
1217
<testsuite name="Unit">
1318
<directory suffix="Test.php">./tests/Unit</directory>
@@ -16,11 +21,6 @@
1621
<directory suffix="Test.php">./tests/Feature</directory>
1722
</testsuite>
1823
</testsuites>
19-
<filter>
20-
<whitelist processUncoveredFilesFromWhitelist="true">
21-
<directory suffix=".php">./src</directory>
22-
</whitelist>
23-
</filter>
2424
<php>
2525
<env name="APP_ENV" value="testing"/>
2626
<env name="CACHE_DRIVER" value="array"/>

0 commit comments

Comments
 (0)