diff --git a/tests/CacheTestBase.php b/tests/CacheTestBase.php index 48106953..b3e53c11 100644 --- a/tests/CacheTestBase.php +++ b/tests/CacheTestBase.php @@ -37,7 +37,7 @@ public function testCacheFactory(string $cacheDriver, array $cacheOptions, strin $this->assertInstanceOf($expectedClass, $this->getCache($cacheDriver, $cacheOptions)); } - static public function cacheFactoryProvider(): Generator + public static function cacheFactoryProvider(): Generator { yield 'file' => [ 'file', [], Cache\CacheFile::class, diff --git a/tests/HttpTest.php b/tests/HttpTest.php index d14ae5ae..9efe4f8c 100644 --- a/tests/HttpTest.php +++ b/tests/HttpTest.php @@ -92,7 +92,7 @@ public function testResponseWithCode(int $responseCode) $this->assertEquals($responseCode, $resp->getResponseCode()); } - static public function responseWithCodeProvider(): Generator + public static function responseWithCodeProvider(): Generator { yield 'HTTP 202 Created' => [202]; yield 'HTTP 404 Not Found' => [404]; diff --git a/tests/ImageTestBase.php b/tests/ImageTestBase.php index 927ee7bb..0eb22ee2 100644 --- a/tests/ImageTestBase.php +++ b/tests/ImageTestBase.php @@ -56,7 +56,7 @@ public function testRender(string $typeToRender, int $expectedType, string $expe $this->assertEquals($expectMimeType, $img->getMimeType()); } - static public function renderDataProvider(): Generator + public static function renderDataProvider(): Generator { yield 'jpeg' => [ 'jpeg', IMAGETYPE_JPEG, 'image/jpeg']; yield 'png' => [ 'png', IMAGETYPE_PNG, 'image/png']; diff --git a/tests/ResponseTest.php b/tests/ResponseTest.php index c2fc3680..34873698 100644 --- a/tests/ResponseTest.php +++ b/tests/ResponseTest.php @@ -184,7 +184,7 @@ public function testIfModifiedSinceLastModified($lastModified, $headerValue, $ex /** * @return array */ - static public function ifModifiedSinceLastModifiedDataProvider(): array + public static function ifModifiedSinceLastModifiedDataProvider(): array { return [ [null, null, false], @@ -227,7 +227,7 @@ public function testIfModifiedSinceETag($eTag, $headerValue, $expected) /** * @return array */ - static public function ifModifiedSinceETagDataProvider(): array + public static function ifModifiedSinceETagDataProvider(): array { return [ [null, null, false], diff --git a/tests/RouterTest.php b/tests/RouterTest.php index 6fb0ef4a..59703595 100644 --- a/tests/RouterTest.php +++ b/tests/RouterTest.php @@ -34,7 +34,7 @@ public function testGetPathPrefix(string $homeUrl, string $expected) $this->assertEquals($expected, $router->getPathPrefix()); } - static public function getPathPrefixDataProvider(): Generator + public static function getPathPrefixDataProvider(): Generator { // parse_url( PHP_URL_PATH ) gives null in this case yield 'Home page at root' => [