diff --git a/.gitignore b/.gitignore index 4a03159de..3dd9edec0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,4 @@ /vendor composer.lock composer.phar -phpunit.phar phpunit.xml diff --git a/composer.json b/composer.json index cf8e5509f..33a797d46 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "mongodb/mongodb": "^1.15" }, "require-dev": { - "phpunit/phpunit": "^9.5.10", + "phpunit/phpunit": "^10.3", "orchestra/testbench": "^8.0", "mockery/mockery": "^1.4.4", "doctrine/coding-standard": "12.0.x-dev" @@ -60,7 +60,6 @@ ] } }, - "minimum-stability": "dev", "config": { "platform": { "php": "8.1" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 120898c08..cd883f311 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,15 @@ - - - - ./src - - + + tests/ @@ -38,7 +43,7 @@ - + @@ -46,4 +51,9 @@ + + + ./src + + diff --git a/tests/ConnectionTest.php b/tests/ConnectionTest.php index 51a463c56..b46168df8 100644 --- a/tests/ConnectionTest.php +++ b/tests/ConnectionTest.php @@ -43,7 +43,7 @@ public function testDb() $this->assertInstanceOf(Client::class, $connection->getMongoClient()); } - public function dataConnectionConfig(): Generator + public static function dataConnectionConfig(): Generator { yield 'Single host' => [ 'expectedUri' => 'mongodb://some-host',