From b5aa5597ac0c42b56e7701b3817a46a5dee613d8 Mon Sep 17 00:00:00 2001 From: Natan Felles Date: Tue, 23 Jan 2024 16:23:27 -0300 Subject: [PATCH] Upgrade phpunit to version ^10.5 --- composer.json | 2 +- phpunit.xml.dist | 2 +- tests/AppTest.php | 1 + tests/Debug/AppCollectorTest.php | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index c6e59c8..5100e71 100644 --- a/composer.json +++ b/composer.json @@ -68,7 +68,7 @@ "jetbrains/phpstorm-attributes": "^1.0", "phpmd/phpmd": "^2.13", "phpstan/phpstan": "^1.9", - "phpunit/phpunit": "10.1.3" + "phpunit/phpunit": "^10.5" }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1a6be6c..11b576c 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -2,7 +2,7 @@ diff --git a/tests/AppTest.php b/tests/AppTest.php index 22a2a44..adb4764 100644 --- a/tests/AppTest.php +++ b/tests/AppTest.php @@ -46,6 +46,7 @@ final class AppTest extends TestCase protected function setUp() : void { $this->app = new App(new Config(__DIR__ . '/configs', [], '.config.php')); + \restore_error_handler(); } public function testInitialization() : void diff --git a/tests/Debug/AppCollectorTest.php b/tests/Debug/AppCollectorTest.php index a614277..3ef532b 100644 --- a/tests/Debug/AppCollectorTest.php +++ b/tests/Debug/AppCollectorTest.php @@ -35,6 +35,7 @@ protected function setUp() : void $this->collector = $this->app::debugger() ->getCollection('App') ->getCollectors()[0]; + \restore_error_handler(); } protected function getExternalCollector() : AppCollector