Skip to content

Commit 51909c2

Browse files
committed
Fix PHPUnit deprecations
1 parent c81738c commit 51909c2

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"php-cs-fixer": "vendor/bin/php-cs-fixer fix --dry-run --verbose --diff",
7373
"php-cs-fixer-fix": "vendor/bin/php-cs-fixer fix --verbose",
7474
"phpstan": "vendor/bin/phpstan analyse --level 2 src",
75-
"phpunit": "vendor/bin/phpunit ./tests/ --coverage-html=./report/coverage/ --whitelist=./src/ --testdox-html=./report/testdox.html --disallow-test-output --process-isolation",
75+
"phpunit": "vendor/bin/phpunit ./tests/ --coverage-html=./report/coverage/ --testdox-html=./report/testdox.html --disallow-test-output --process-isolation",
7676
"test": [
7777
"@lint",
7878
"@phpunit"

phpunit.xml.dist

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!-- https://phpunit.readthedocs.io/en/9.5/configuration.html -->
32
<phpunit
4-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
6-
backupGlobals="false"
7-
backupStaticAttributes="false"
8-
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
12-
processIsolation="false"
13-
stopOnFailure="false"
14-
bootstrap="vendor/autoload.php">
15-
<coverage>
16-
<include>
17-
<directory suffix=".php">src</directory>
18-
</include>
19-
</coverage>
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
5+
backupGlobals="false"
6+
colors="true"
7+
processIsolation="false"
8+
stopOnFailure="false"
9+
bootstrap="vendor/autoload.php"
10+
cacheDirectory=".phpunit.cache"
11+
backupStaticProperties="false">
12+
<coverage/>
2013
<testsuites>
2114
<testsuite name="Docker PHP Tests Suite">
2215
<directory>tests/</directory>
2316
</testsuite>
2417
</testsuites>
18+
<source>
19+
<include>
20+
<directory suffix=".php">src</directory>
21+
</include>
22+
</source>
2523
</phpunit>

tests/Stream/MultiJsonStreamTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class MultiJsonStreamTest extends TestCase
1414
{
15-
public function jsonStreamDataProvider()
15+
public static function jsonStreamDataProvider()
1616
{
1717
return [
1818
[

0 commit comments

Comments
 (0)