diff --git a/composer.json b/composer.json index 25ffa2f..faa0ec0 100644 --- a/composer.json +++ b/composer.json @@ -24,10 +24,10 @@ "require-dev": { "laravel/pint": "^1.14", "nunomaduro/collision": "^8.8", - "orchestra/testbench": "^10.0.0||^9.0.0", - "pestphp/pest": "^4.0", - "pestphp/pest-plugin-arch": "^4.0", - "pestphp/pest-plugin-laravel": "^4.0" + "orchestra/testbench": "^10.0", + "pestphp/pest": "^3.0", + "pestphp/pest-plugin-arch": "^3.0", + "pestphp/pest-plugin-laravel": "^3.0" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1d45e09..d39c995 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,7 +1,7 @@ in(__DIR__); uses() - ->beforeEach(fn () => MockClient::destroyGlobal()) + ->beforeEach(function () { + MockClient::destroyGlobal(); + }) ->in(__DIR__); diff --git a/tests/TestCase.php b/tests/TestCase.php index f3379db..c8e6c36 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -34,4 +34,11 @@ public function getEnvironmentSetUp($app) } */ } + + protected function defineEnvironment($app) + { + // Configure the application environment for testing + $app['config']->set('app.debug', true); + $app['config']->set('app.env', 'testing'); + } }