From 5248b6538e9ac259b80c355cae79d35d66dfda89 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 1 Oct 2024 10:56:00 +1300 Subject: [PATCH] Revert "DEP Use PHPUnit 11" This reverts commit 07e99017a420d0efd5d62269139966aff93e2a44. --- composer.json | 2 +- tests/Methods/LibraryTest.php | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 610e38d..80d30c7 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ }, "require-dev": { "composer/composer": "^2", - "phpunit/phpunit": "^11.3", + "phpunit/phpunit": "^9.6", "squizlabs/php_codesniffer": "^3.7" } } diff --git a/tests/Methods/LibraryTest.php b/tests/Methods/LibraryTest.php index da40e53..1d92c2b 100644 --- a/tests/Methods/LibraryTest.php +++ b/tests/Methods/LibraryTest.php @@ -4,11 +4,12 @@ use PHPUnit\Framework\TestCase; use SilverStripe\VendorPlugin\Library; -use PHPUnit\Framework\Attributes\DataProvider; class LibraryTest extends TestCase { - #[DataProvider('resourcesDirProvider')] + /** + * @dataProvider resourcesDirProvider + */ public function testResourcesDir($expected, $projectPath) { $path = __DIR__ . '/../fixtures/projects/' . $projectPath; @@ -16,7 +17,7 @@ public function testResourcesDir($expected, $projectPath) $this->assertEquals($expected, $lib->getResourcesDir()); } - public static function resourcesDirProvider() + public function resourcesDirProvider() { return [ ['_resources', 'ss43'],