Skip to content

Commit c7a10e4

Browse files
authored
Merge pull request #306 from owncloud/phpunit9.5
[tests-only] Ensure compatibility with PHPUnit v9.5
2 parents b59b6a7 + 4e133df commit c7a10e4

File tree

3 files changed

+35
-32
lines changed

3 files changed

+35
-32
lines changed

.drone.star

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ config = {
2222
"phpunit": {
2323
"allDatabases": {
2424
"phpVersions": [
25-
"7.3",
25+
"7.4",
2626
],
2727
},
2828
"reducedDatabases": {
2929
"phpVersions": [
30-
"7.4",
30+
"7.3",
3131
],
3232
"databases": [
3333
"mysql:8.0",

phpunit.xml

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<phpunit bootstrap="tests/unit/bootstrap.php"
3-
beStrictAboutOutputDuringTests="true"
4-
verbose="true"
5-
failOnRisky="true"
6-
failOnWarning="true"
7-
timeoutForSmallTests="900"
8-
timeoutForMediumTests="900"
9-
timeoutForLargeTests="900"
10-
>
11-
<testsuites>
12-
<testsuite name='unit'>
13-
<directory suffix='Test.php'>./tests/unit</directory>
14-
</testsuite>
15-
</testsuites>
16-
<!-- filters for code coverage -->
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">.</directory>
20-
<exclude>
21-
<directory suffix=".php">./vendor</directory>
22-
<directory suffix=".php">./templates</directory>
23-
<directory suffix=".php">./tests</directory>
24-
</exclude>
25-
</whitelist>
26-
</filter>
27-
<logging>
28-
<!-- and this is where your report will be written -->
29-
<log type="coverage-clover" target="./tests/output/clover.xml"/>
30-
</logging>
3+
beStrictAboutOutputDuringTests="true"
4+
verbose="true"
5+
failOnRisky="true"
6+
failOnWarning="true"
7+
timeoutForSmallTests="900"
8+
timeoutForMediumTests="900"
9+
timeoutForLargeTests="900"
10+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
12+
<coverage>
13+
<include>
14+
<directory suffix=".php">.</directory>
15+
</include>
16+
<exclude>
17+
<directory suffix=".php">./vendor</directory>
18+
<directory suffix=".php">./templates</directory>
19+
<directory suffix=".php">./tests</directory>
20+
</exclude>
21+
<report>
22+
<clover outputFile="./tests/output/clover.xml"/>
23+
</report>
24+
</coverage>
25+
<testsuites>
26+
<testsuite name="unit">
27+
<directory suffix="Test.php">./tests/unit</directory>
28+
</testsuite>
29+
</testsuites>
30+
<!-- filters for code coverage -->
31+
<logging>
32+
<!-- and this is where your report will be written -->
33+
</logging>
3134
</phpunit>

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ sonar.pullrequest.branch=${env.SONAR_PULL_REQUEST_BRANCH}
2929
sonar.pullrequest.key=${env.SONAR_PULL_REQUEST_KEY}
3030

3131
# Properties specific to language plugins:
32-
sonar.php.coverage.reportPaths=results/clover-phpunit-php7.2-mariadb10.2.xml,results/clover-phpunit-php7.2-mysql8.0.xml,results/clover-phpunit-php7.2-postgres9.4.xml,results/clover-phpunit-php7.2-oracle.xml,results/clover-phpunit-php7.2-sqlite.xml
32+
sonar.php.coverage.reportPaths=results/clover-phpunit-php7.4-mariadb10.2.xml,results/clover-phpunit-php7.4-mysql8.0.xml,results/clover-phpunit-php7.4-postgres9.4.xml,results/clover-phpunit-php7.4-oracle.xml,results/clover-phpunit-php7.4-sqlite.xml
3333
sonar.javascript.lcov.reportPaths=results/lcov.info

0 commit comments

Comments
 (0)