From 81f1b63ef168604158e9991d7d432f983ddee126 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 6 Sep 2024 17:43:27 +1200 Subject: [PATCH] DEP Use PHPUnit 11 --- tests/php/Publisher/FilesystemPublisherTest.php | 2 +- tests/php/Service/UrlBundleServiceTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/php/Publisher/FilesystemPublisherTest.php b/tests/php/Publisher/FilesystemPublisherTest.php index 73a9df27..c80514a5 100644 --- a/tests/php/Publisher/FilesystemPublisherTest.php +++ b/tests/php/Publisher/FilesystemPublisherTest.php @@ -341,7 +341,7 @@ public function testPathToURL($expected, $path): void ); } - public function providePathsToURL() + public static function providePathsToURL() { return [ ['http://example.com', 'index.html'], diff --git a/tests/php/Service/UrlBundleServiceTest.php b/tests/php/Service/UrlBundleServiceTest.php index 0fd0b794..b1738edd 100644 --- a/tests/php/Service/UrlBundleServiceTest.php +++ b/tests/php/Service/UrlBundleServiceTest.php @@ -93,7 +93,7 @@ public function testChunkSize(string $jobClass, int $chunkSize): void $this->assertEquals($chunkSize, $method->invoke($job)); } - public function jobClasses(): array + public static function jobClasses(): array { return [ [GenerateStaticCacheJob::class], @@ -101,7 +101,7 @@ public function jobClasses(): array ]; } - public function urlsPerJobCases(): array + public static function urlsPerJobCases(): array { return [ [ @@ -115,7 +115,7 @@ public function urlsPerJobCases(): array ]; } - public function chunkCases(): array + public static function chunkCases(): array { return [ [ @@ -183,7 +183,7 @@ public function testStripStageParam(string $url, string $expectedUrl): void $this->assertEquals($expectedUrl, $method->invoke($urlService, $url)); } - public function provideStripStageParamUrls(): array + public static function provideStripStageParamUrls(): array { return [ // Testing removal of stage=Stage, expect http to remain http