Skip to content

Commit 33dcbc3

Browse files
committed
Bump phpunit to be less-deprecated
phpunit 9.X is for php 7.X -- now that 7.X is very dead, we can move to phpunit 10
1 parent 92e26fe commit 33dcbc3

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"nikic/php-parser": "^5"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^9.6",
19+
"phpunit/phpunit": "^10.4",
2020
"php-coveralls/php-coveralls": "^2.1",
2121
"squizlabs/php_codesniffer": "^3.4"
2222
},

phpunit.xml.dist

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
<?xml version="1.0"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
colors="true"
66
backupGlobals="false"
7-
backupStaticAttributes="false"
87
beStrictAboutChangesToGlobalState="true"
98
beStrictAboutOutputDuringTests="true"
109
beStrictAboutTestsThatDoNotTestAnything="true"
11-
beStrictAboutTodoAnnotatedTests="true"
1210
failOnRisky="true"
1311
failOnWarning="true"
14-
convertErrorsToExceptions="true"
15-
convertNoticesToExceptions="true"
16-
convertWarningsToExceptions="true"
17-
>
12+
cacheDirectory=".phpunit.cache"
13+
backupStaticProperties="false">
1814
<testsuites>
1915
<testsuite name="Test suite">
2016
<directory>./tests/</directory>
2117
</testsuite>
2218
</testsuites>
2319
<coverage>
24-
<include>
25-
<directory suffix=".php">./src</directory>
26-
</include>
27-
<exclude>
28-
<file>src/Type/Php/ReplaceSafeFunctionsDynamicReturnTypeExtension.php</file>
29-
</exclude>
3020
<report>
3121
<clover outputFile="build/logs/clover.xml"/>
3222
<html outputDirectory="build/coverage"/>
3323
<text outputFile="php://stdout" showUncoveredFiles="true" showOnlySummary="true"/>
3424
</report>
3525
</coverage>
26+
<source>
27+
<include>
28+
<directory suffix=".php">./src</directory>
29+
</include>
30+
<exclude>
31+
<!-- type checking doesn't count towards coverage for some reason -->
32+
<directory>src/Type/Php/</directory>
33+
</exclude>
34+
</source>
3635
</phpunit>

0 commit comments

Comments
 (0)