Skip to content

Commit a4f607c

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 a4f607c

File tree

2 files changed

+11
-23
lines changed

2 files changed

+11
-23
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
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",
2020
"php-coveralls/php-coveralls": "^2.1",
2121
"squizlabs/php_codesniffer": "^3.4"
2222
},

phpunit.xml.dist

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,24 @@
11
<?xml version="1.0"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
backupGlobals="false"
7-
backupStaticAttributes="false"
8-
beStrictAboutChangesToGlobalState="true"
9-
beStrictAboutOutputDuringTests="true"
10-
beStrictAboutTestsThatDoNotTestAnything="true"
11-
beStrictAboutTodoAnnotatedTests="true"
12-
failOnRisky="true"
13-
failOnWarning="true"
14-
convertErrorsToExceptions="true"
15-
convertNoticesToExceptions="true"
16-
convertWarningsToExceptions="true"
17-
>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" backupGlobals="false" beStrictAboutChangesToGlobalState="true" beStrictAboutOutputDuringTests="true" beStrictAboutTestsThatDoNotTestAnything="true" failOnRisky="true" failOnWarning="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
183
<testsuites>
194
<testsuite name="Test suite">
205
<directory>./tests/</directory>
216
</testsuite>
227
</testsuites>
238
<coverage>
24-
<include>
25-
<directory suffix=".php">./src</directory>
26-
</include>
27-
<exclude>
28-
<file>src/Type/Php/ReplaceSafeFunctionsDynamicReturnTypeExtension.php</file>
29-
</exclude>
309
<report>
3110
<clover outputFile="build/logs/clover.xml"/>
3211
<html outputDirectory="build/coverage"/>
3312
<text outputFile="php://stdout" showUncoveredFiles="true" showOnlySummary="true"/>
3413
</report>
3514
</coverage>
15+
<source>
16+
<include>
17+
<directory suffix=".php">./src</directory>
18+
</include>
19+
<exclude>
20+
<!-- type checking doesn't count towards coverage for some reason -->
21+
<directory>src/Type/Php/</directory>
22+
</exclude>
23+
</source>
3624
</phpunit>

0 commit comments

Comments
 (0)