Skip to content

Commit c544fa9

Browse files
committed
build: Update phpunit/phpunit to 10.5.58
- Update PHPUnit config for version 10 with `--migrate-configuration` - Enabled options to display all notices, deprecations, etc. Change-Id: I3e9c217a49ddc2de6ca95a6599c6fc6f32d5c880
1 parent ff0163a commit c544fa9

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"mediawiki/minus-x": "1.1.3",
5050
"php-parallel-lint/php-console-highlighter": "1.0.0",
5151
"php-parallel-lint/php-parallel-lint": "1.4.0",
52-
"phpunit/phpunit": "9.6.21"
52+
"phpunit/phpunit": "10.5.58"
5353
},
5454
"scripts": {
5555
"test": [

phpunit.xml.dist

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
55
processIsolation="false"
66
stopOnFailure="false"
77
stopOnError="false"
88
stopOnIncomplete="false"
99
stopOnSkipped="false"
1010
bootstrap="test/phpunit/bootstrap.php"
11-
cacheResultFile=".phpunit.cache/test-results"
11+
cacheDirectory=".phpunit.cache"
1212
executionOrder="depends,defects"
13+
displayDetailsOnTestsThatTriggerDeprecations="true"
14+
displayDetailsOnTestsThatTriggerErrors="true"
15+
displayDetailsOnTestsThatTriggerNotices="true"
16+
displayDetailsOnTestsThatTriggerWarnings="true"
17+
displayDetailsOnPhpunitDeprecations="true"
1318
beStrictAboutOutputDuringTests="true"
14-
beStrictAboutTodoAnnotatedTests="true"
15-
convertDeprecationsToExceptions="true"
1619
failOnRisky="true"
1720
failOnWarning="true"
1821
>
@@ -21,15 +24,10 @@
2124
<directory>./test/phpunit</directory>
2225
</testsuite>
2326
</testsuites>
24-
<coverage
25-
cacheDirectory=".phpunit.cache/code-coverage"
26-
includeUncoveredFiles="true"
27-
processUncoveredFiles="true"
28-
pathCoverage="false"
29-
ignoreDeprecatedCodeUnits="true">
27+
<source>
3028
<include>
3129
<directory suffix=".php">lib/</directory>
3230
<file>lessc.inc.php</file>
3331
</include>
34-
</coverage>
32+
</source>
3533
</phpunit>

0 commit comments

Comments
 (0)