Skip to content

Commit 81b4d3a

Browse files
committed
PHPUnit 10
1 parent 130e167 commit 81b4d3a

File tree

3 files changed

+16
-26
lines changed

3 files changed

+16
-26
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
php-version: "${{ matrix.php-version }}"
4444

4545
- name: "Reset composer platform"
46-
if: matrix.php-version == '7.2'
46+
if: matrix.php-version == '7.2' || matrix.php-version == '7.3' || matrix.php-version == '7.4'
4747
run: "composer config --unset platform"
4848

4949
- name: "Install dependencies"
@@ -154,7 +154,7 @@ jobs:
154154
extensions: mbstring
155155

156156
- name: "Reset composer platform"
157-
if: matrix.php-version == '7.2' || matrix.php-version == '7.3' || matrix.php-version == '7.4'
157+
if: matrix.php-version == '7.2' || matrix.php-version == '7.3' || matrix.php-version == '7.4' || matrix.php-version == '8.0'
158158
run: "composer config --unset platform"
159159

160160
- name: "Install dependencies"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"config": {
1010
"bin-dir": "bin",
1111
"platform": {
12-
"php": "8.0.0"
12+
"php": "8.1.0"
1313
},
1414
"allow-plugins": {
1515
"dealerdirect/phpcodesniffer-composer-installer": true
@@ -28,7 +28,7 @@
2828
"phpstan/phpstan-deprecation-rules": "1.1.3",
2929
"phpstan/phpstan-phpunit": "1.0.0|1.3.11",
3030
"phpstan/phpstan-strict-rules": "1.5.1",
31-
"phpunit/phpunit": "7.5.20|8.5.21|9.6.6"
31+
"phpunit/phpunit": "7.5.20|8.5.21|9.6.6|10.0.19"
3232
},
3333
"autoload": {
3434
"psr-4": {

phpunit.xml.dist

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,32 @@
11
<?xml version="1.0"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/8.1/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
55
bootstrap="tests/bootstrap.php"
66
colors="true"
77
backupGlobals="false"
8-
backupStaticAttributes="false"
8+
backupStaticProperties="false"
99
beStrictAboutChangesToGlobalState="true"
1010
beStrictAboutOutputDuringTests="true"
1111
beStrictAboutTestsThatDoNotTestAnything="true"
12-
beStrictAboutTodoAnnotatedTests="true"
1312
cacheResult="true"
14-
cacheResultFile="temp/.phpunit.result.cache"
1513
stopOnDefect="true"
1614
executionOrder="defects"
15+
cacheDirectory="temp/phpunit-cache"
1716
>
1817
<testsuites>
1918
<testsuite name="Slevomat Coding Standard">
2019
<directory suffix="Test.php">./tests/</directory>
2120
</testsuite>
2221
</testsuites>
23-
24-
<logging>
25-
<log
26-
type="coverage-html"
27-
target="temp/coverage"
28-
/>
29-
<log type="coverage-clover" target="temp/coverage.xml"/>
30-
<log
31-
type="coverage-text"
32-
target="php://stdout"
33-
showUncoveredFiles="true"
34-
showOnlySummary="true"
35-
/>
36-
</logging>
37-
<filter>
38-
<whitelist processUncoveredFilesFromWhitelist="true">
22+
<coverage>
23+
<include>
3924
<directory suffix=".php">SlevomatCodingStandard</directory>
40-
</whitelist>
41-
</filter>
25+
</include>
26+
<report>
27+
<clover outputFile="temp/coverage.xml"/>
28+
<html outputDirectory="temp/coverage"/>
29+
<text outputFile="php://stdout" showUncoveredFiles="true" showOnlySummary="true"/>
30+
</report>
31+
</coverage>
4232
</phpunit>

0 commit comments

Comments
 (0)