Skip to content

Commit 02c3378

Browse files
authored
Upgrade PHPUnit 10.3 (#2611)
1 parent cc005bf commit 02c3378

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
/vendor
99
composer.lock
1010
composer.phar
11-
phpunit.phar
1211
phpunit.xml

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"mongodb/mongodb": "^1.15"
3232
},
3333
"require-dev": {
34-
"phpunit/phpunit": "^9.5.10",
34+
"phpunit/phpunit": "^10.3",
3535
"orchestra/testbench": "^8.0",
3636
"mockery/mockery": "^1.4.4",
3737
"doctrine/coding-standard": "12.0.x-dev"
@@ -60,7 +60,6 @@
6060
]
6161
}
6262
},
63-
"minimum-stability": "dev",
6463
"config": {
6564
"platform": {
6665
"php": "8.1"

phpunit.xml.dist

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage processUncoveredFiles="true">
4-
<include>
5-
<directory suffix=".php">./src</directory>
6-
</include>
7-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
4+
backupGlobals="false"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
processIsolation="false"
8+
stopOnFailure="false"
9+
cacheDirectory=".phpunit.cache"
10+
backupStaticProperties="false"
11+
>
12+
<coverage/>
813
<testsuites>
914
<testsuite name="all">
1015
<directory>tests/</directory>
@@ -38,12 +43,17 @@
3843
</testsuite>
3944
</testsuites>
4045
<php>
41-
<env name="MONGODB_URI" value="mongodb://mongodb/" />
46+
<env name="MONGODB_URI" value="mongodb://mongodb/"/>
4247
<env name="MONGODB_DATABASE" value="unittest"/>
4348
<env name="MYSQL_HOST" value="mysql"/>
4449
<env name="MYSQL_PORT" value="3306"/>
4550
<env name="MYSQL_DATABASE" value="unittest"/>
4651
<env name="MYSQL_USERNAME" value="root"/>
4752
<env name="QUEUE_CONNECTION" value="database"/>
4853
</php>
54+
<source>
55+
<include>
56+
<directory suffix=".php">./src</directory>
57+
</include>
58+
</source>
4959
</phpunit>

tests/ConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testDb()
4343
$this->assertInstanceOf(Client::class, $connection->getMongoClient());
4444
}
4545

46-
public function dataConnectionConfig(): Generator
46+
public static function dataConnectionConfig(): Generator
4747
{
4848
yield 'Single host' => [
4949
'expectedUri' => 'mongodb://some-host',

0 commit comments

Comments
 (0)