Skip to content

Commit

Permalink
Require phpunit only ^9.0
Browse files Browse the repository at this point in the history
- Remove phpunit ^8.4
- Migrate phpunit configuration "Your XML configuration validates against a deprecated schema."
  • Loading branch information
divine committed Sep 21, 2020
1 parent b8d421d commit 436cae8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -26,7 +26,7 @@
"mongodb/mongodb": "^1.6"
},
"require-dev": {
"phpunit/phpunit": "^8.4|^9.0",
"phpunit/phpunit": "^9.0",
"orchestra/testbench": "^6.0",
"mockery/mockery": "^1.3.1",
"doctrine/dbal": "^2.6"
Expand Down
20 changes: 6 additions & 14 deletions phpunit.xml.dist
@@ -1,13 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<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">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="all">
<directory>tests/</directory>
Expand Down Expand Up @@ -37,11 +34,6 @@
<file>tests/ValidationTest.php</file>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<php>
<env name="MONGO_HOST" value="mongodb"/>
<env name="MONGO_DATABASE" value="unittest"/>
Expand Down

0 comments on commit 436cae8

Please sign in to comment.