File tree Expand file tree Collapse file tree 4 files changed +19
-11
lines changed Expand file tree Collapse file tree 4 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 8
8
/vendor
9
9
composer.lock
10
10
composer.phar
11
- phpunit.phar
12
11
phpunit.xml
Original file line number Diff line number Diff line change 31
31
"mongodb/mongodb" : " ^1.15"
32
32
},
33
33
"require-dev" : {
34
- "phpunit/phpunit" : " ^9.5.10 " ,
34
+ "phpunit/phpunit" : " ^10.3 " ,
35
35
"orchestra/testbench" : " ^8.0" ,
36
36
"mockery/mockery" : " ^1.4.4" ,
37
37
"doctrine/coding-standard" : " 12.0.x-dev"
60
60
]
61
61
}
62
62
},
63
- "minimum-stability" : " dev" ,
64
63
"config" : {
65
64
"platform" : {
66
65
"php" : " 8.1"
Original file line number Diff line number Diff line change 1
1
<?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 />
8
13
<testsuites >
9
14
<testsuite name =" all" >
10
15
<directory >tests/</directory >
38
43
</testsuite >
39
44
</testsuites >
40
45
<php >
41
- <env name =" MONGODB_URI" value =" mongodb://mongodb/" />
46
+ <env name =" MONGODB_URI" value =" mongodb://mongodb/" />
42
47
<env name =" MONGODB_DATABASE" value =" unittest" />
43
48
<env name =" MYSQL_HOST" value =" mysql" />
44
49
<env name =" MYSQL_PORT" value =" 3306" />
45
50
<env name =" MYSQL_DATABASE" value =" unittest" />
46
51
<env name =" MYSQL_USERNAME" value =" root" />
47
52
<env name =" QUEUE_CONNECTION" value =" database" />
48
53
</php >
54
+ <source >
55
+ <include >
56
+ <directory suffix =" .php" >./src</directory >
57
+ </include >
58
+ </source >
49
59
</phpunit >
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function testDb()
43
43
$ this ->assertInstanceOf (Client::class, $ connection ->getMongoClient ());
44
44
}
45
45
46
- public function dataConnectionConfig (): Generator
46
+ public static function dataConnectionConfig (): Generator
47
47
{
48
48
yield 'Single host ' => [
49
49
'expectedUri ' => 'mongodb://some-host ' ,
You can’t perform that action at this time.
0 commit comments