From c8c1365ece74139dfce86eebf5e6472648935b74 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 6 Sep 2024 12:21:48 +1200 Subject: [PATCH] DEP Use PHPUnit 11 --- composer.json | 2 +- tests/Model/PackageTest.php | 2 +- tests/Util/ApiLoaderTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 7ea9ded..f461963 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "guzzlehttp/guzzle": "^7.5" }, "require-dev": { - "phpunit/phpunit": "^9.6", + "phpunit/phpunit": "^11.3", "squizlabs/php_codesniffer": "^3", "symfony/thanks": "^1.2", "silverstripe/standards": "^1", diff --git a/tests/Model/PackageTest.php b/tests/Model/PackageTest.php index 4392c07..6259939 100644 --- a/tests/Model/PackageTest.php +++ b/tests/Model/PackageTest.php @@ -9,7 +9,7 @@ class PackageTest extends SapphireTest { - public function providePackageNamesAndTitles() + public static function providePackageNamesAndTitles() { return [ ['pretendvendor/silverstripe-prefixedpackage', 'prefixedpackage'], diff --git a/tests/Util/ApiLoaderTest.php b/tests/Util/ApiLoaderTest.php index 2bf1043..86f705c 100644 --- a/tests/Util/ApiLoaderTest.php +++ b/tests/Util/ApiLoaderTest.php @@ -125,7 +125,7 @@ protected function getCacheKey() $inst->parseResponseContents($contents, $failureMessage); } - public function provideParseResponseContentsEmpty(): array + public static function provideParseResponseContentsEmpty(): array { return [ [