Skip to content

Commit

Permalink
Usage phpunit 10.0 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored Feb 17, 2023
1 parent 2db0478 commit ca48c28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 25 deletions.
7 changes: 1 addition & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
},
"require-dev": {
"orchestra/testbench": "^8.0",
"phpunit/php-code-coverage": "^9.2",
"phpunit/phpunit": "^9.5.10"
},
"conflict": {
"mockery/mockery": "<1.4.2",
"symfony/http-foundation": "<5.1.9"
"phpunit/php-code-coverage": "^10.0"
},
"autoload": {
"psr-4": {
Expand Down
31 changes: 12 additions & 19 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
<?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"
stopOnError="false"
verbose="true"
>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php"
colors="true" processIsolation="false" stopOnFailure="false" stopOnError="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<coverage>
<include>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</include>
<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests</directory>
Expand All @@ -32,7 +27,5 @@
<env name="SCOUT_DRIVER" value="null"/>
<env name="QUEUE_DRIVER" value="sync"/>
</php>
<logging>
<log type="coverage-clover" target="clover.xml"/>
</logging>
<logging/>
</phpunit>

0 comments on commit ca48c28

Please sign in to comment.