From ee43725fc3eafdfb52de7c3414cfb8e64ec3db3c Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 1 Oct 2024 10:50:39 +1300 Subject: [PATCH] Revert "DEP Use PHPUnit 11" This reverts commit ede5dc6b8f672dd785d26f1894f6655a00d5a2ae. --- composer.json | 2 +- tests/SnifferTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index cdea406..d4baaed 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,6 @@ "bin/mdphpcs" ], "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^9.6" } } diff --git a/tests/SnifferTest.php b/tests/SnifferTest.php index bd29969..f79373c 100644 --- a/tests/SnifferTest.php +++ b/tests/SnifferTest.php @@ -7,14 +7,14 @@ use PHPUnit\Framework\TestCase; use ReflectionMethod; use SilverStripe\MarkdownPhpCodeSniffer\Sniffer; -use PHPUnit\Framework\Attributes\DataProvider; class SnifferTest extends TestCase { /** * Validates that fenced code blocks are correctly identified and have the expected data + * + * @dataProvider provideFindFencedBlocks */ - #[DataProvider('provideFindFencedBlocks')] public function testFindFencedCodeBlocks( string $path, bool $exists, @@ -48,7 +48,7 @@ public function testFindFencedCodeBlocks( } } - public static function provideFindFencedBlocks() + public function provideFindFencedBlocks() { return [ 'nothing to lint 1' => [