diff --git a/composer.json b/composer.json index eca7032..00749b7 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "hyperf/framework": "~2.1.0", "malukenho/docheader": "^0.1.6", "mockery/mockery": "^1.0", - "phpunit/phpunit": "^7.0.0", + "phpunit/phpunit": "^9.4", "friendsofphp/php-cs-fixer": "^2.9" }, "suggest": { diff --git a/tests/PageResolverListenerTest.php b/tests/PageResolverListenerTest.php index 78f19a8..bbf1b3f 100644 --- a/tests/PageResolverListenerTest.php +++ b/tests/PageResolverListenerTest.php @@ -29,13 +29,13 @@ */ class PageResolverListenerTest extends TestCase { - protected function setUp() + protected function setUp(): void { Context::set(PsrServerRequestInterface::class, null); Context::set('http.request.parsedData', null); } - protected function tearDown() + protected function tearDown(): void { Mockery::close(); Context::set(PsrServerRequestInterface::class, null);