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' => [