diff --git a/composer.json b/composer.json index 4d77920b748c593793f31c453f457f8424840140..9e1113698f483c4187f9c8980ac2ce26eeb4e3f4 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require": { "php": "^7.1 || ^8.0", "psr/http-factory": "^1.0", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0 || ^10.0" }, "autoload": { "psr-4": { diff --git a/test/RequestFactoryTestCase.php b/test/RequestFactoryTestCase.php index 9a9f4a9a83b5215c64c368f816fe7d09adda0340..7e3690592339444f14e6391e5f7c11e4a9513c8d 100644 --- a/test/RequestFactoryTestCase.php +++ b/test/RequestFactoryTestCase.php @@ -38,7 +38,7 @@ abstract class RequestFactoryTestCase extends TestCase $this->assertSame($uri, (string) $request->getUri()); } - public function dataMethods() + public static function dataMethods() { return [ ['GET'], diff --git a/test/ResponseFactoryTestCase.php b/test/ResponseFactoryTestCase.php index d7e2c11c99c953a289b63fd6c5c1f669cb447d61..e61875288677350bda1ee10bb1d18ef6af96b1d6 100644 --- a/test/ResponseFactoryTestCase.php +++ b/test/ResponseFactoryTestCase.php @@ -29,7 +29,7 @@ abstract class ResponseFactoryTestCase extends TestCase $this->assertSame($code, $response->getStatusCode()); } - public function dataCodes() + public static function dataCodes() { return [ [200], diff --git a/test/ServerRequestFactoryTestCase.php b/test/ServerRequestFactoryTestCase.php index 30846970a2257a1ff1dae1aa0997740354de0a0f..b19bc66427e72f2d4210ff663829270bbcb9cb52 100644 --- a/test/ServerRequestFactoryTestCase.php +++ b/test/ServerRequestFactoryTestCase.php @@ -38,7 +38,7 @@ abstract class ServerRequestFactoryTestCase extends TestCase $this->assertSame($uri, (string) $request->getUri()); } - public function dataMethods() + public static function dataMethods() { return [ ['GET'], @@ -50,11 +50,11 @@ abstract class ServerRequestFactoryTestCase extends TestCase ]; } - public function dataServer() + public static function dataServer() { $data = []; - foreach ($this->dataMethods() as $methodData) { + foreach (static::dataMethods() as $methodData) { $data[] = [ [ 'REQUEST_METHOD' => $methodData[0],