From d28cec3786fd85a573de3681f083b0ab2af744bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 24 Jun 2024 12:12:32 +0200 Subject: [PATCH] Update dependencies and bootstrap configuration Updated the versions of PHPUnit and Symfony's PHPUnit-Bridge in composer.json to more recent, stable versions. The bootstrap.php code has been modified to now load the regular .env file instead of the .env.test file, the change is made to enable the application fetch the actual environment variables during execution. --- composer.json | 4 ++-- tests/app/config/bootstrap.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 34f9bbfc7..fba4fb5cb 100644 --- a/composer.json +++ b/composer.json @@ -92,12 +92,12 @@ "phpstan/phpstan": "^1.9", "phpstan/phpstan-deprecation-rules": "^1.1", "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": ">= 7.5", + "phpunit/phpunit": "^10.5.24", "rector/rector": "^1.1.0", "symfony/debug-bundle": "^5.4", "symfony/dotenv": "^5.4", "symfony/maker-bundle": "^1.20", - "symfony/phpunit-bridge": "^5.4", + "symfony/phpunit-bridge": "^7.1", "symfony/runtime": "^5.4", "symfony/stopwatch": "^5.4", "symfony/var-dumper": "^5.4" diff --git a/tests/app/config/bootstrap.php b/tests/app/config/bootstrap.php index 4a7385190..6f243bb04 100644 --- a/tests/app/config/bootstrap.php +++ b/tests/app/config/bootstrap.php @@ -23,7 +23,7 @@ if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && (!isset($env (new Dotenv(false))->populate($env); } else { // load all the .env files - (new Dotenv(false))->loadEnv(dirname(__DIR__).'/../../.env.test'); + (new Dotenv(false))->loadEnv(dirname(__DIR__).'/../../.env'); } $_SERVER += $_ENV;