Skip to content

Commit 436cae8

Browse files
committed
Require phpunit only ^9.0
- Remove phpunit ^8.4 - Migrate phpunit configuration "Your XML configuration validates against a deprecated schema."
1 parent b8d421d commit 436cae8

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"mongodb/mongodb": "^1.6"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^8.4|^9.0",
29+
"phpunit/phpunit": "^9.0",
3030
"orchestra/testbench": "^6.0",
3131
"mockery/mockery": "^1.3.1",
3232
"doctrine/dbal": "^2.6"

phpunit.xml.dist

+6-14
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">./src</directory>
6+
</include>
7+
</coverage>
118
<testsuites>
129
<testsuite name="all">
1310
<directory>tests/</directory>
@@ -37,11 +34,6 @@
3734
<file>tests/ValidationTest.php</file>
3835
</testsuite>
3936
</testsuites>
40-
<filter>
41-
<whitelist processUncoveredFilesFromWhitelist="true">
42-
<directory suffix=".php">./src</directory>
43-
</whitelist>
44-
</filter>
4537
<php>
4638
<env name="MONGO_HOST" value="mongodb"/>
4739
<env name="MONGO_DATABASE" value="unittest"/>

0 commit comments

Comments
 (0)