Skip to content

Commit d26732a

Browse files
authored
Add PHPUnit 10 support (#14)
1 parent dd087f2 commit d26732a

File tree

2 files changed

+5
-26
lines changed

2 files changed

+5
-26
lines changed

‎composer.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111
],
1212
"require": {
1313
"php": "^5.5 || ^7.0 || ^8.0",
14-
"phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.0 || ^9.0",
14+
"phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.0 || ^9.0 || ^10.0",
1515
"phpunitgoodpractices/polyfill": "^1.4"
1616
},
17-
"require-dev": {
18-
"johnkary/phpunit-speedtrap": "^1.1 || ^2.0 || ^3.0",
19-
"symfony/phpunit-bridge": "^3.2.2 || ^4.0"
20-
},
2117
"autoload": {
2218
"psr-4": {
2319
"PhpCsFixer\\PhpunitConstraintIsIdenticalString\\": "src/"

‎phpunit.xml.dist

+4-21
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,27 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
66
backupGlobals="false"
7-
backupStaticAttributes="false"
87
beStrictAboutChangesToGlobalState="true"
98
beStrictAboutOutputDuringTests="true"
109
beStrictAboutTestsThatDoNotTestAnything="true"
1110
beStrictAboutTodoAnnotatedTests="true"
1211
bootstrap="./vendor/autoload.php"
1312
colors="true"
1413
columns="max"
15-
convertErrorsToExceptions="true"
16-
convertNoticesToExceptions="true"
17-
convertWarningsToExceptions="true"
1814
enforceTimeLimit="true"
1915
processIsolation="false"
2016
stopOnFailure="false"
21-
verbose="true"
2217
>
2318
<testsuites>
2419
<testsuite name="all">
2520
<directory>./tests</directory>
2621
</testsuite>
2722
</testsuites>
2823

29-
<filter>
30-
<whitelist>
24+
<coverage>
25+
<include>
3126
<directory>./src</directory>
32-
</whitelist>
33-
</filter>
27+
</include>
28+
</coverage>
3429

35-
<listeners>
36-
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
37-
<arguments>
38-
<array>
39-
<element key="slowThreshold">
40-
<integer>100</integer>
41-
</element>
42-
</array>
43-
</arguments>
44-
</listener>
45-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
46-
</listeners>
4730
</phpunit>

0 commit comments

Comments
 (0)