diff --git a/composer.json b/composer.json index d4baaed..cdea406 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,6 @@ "bin/mdphpcs" ], "require-dev": { - "phpunit/phpunit": "^9.6" + "phpunit/phpunit": "^11.3" } } diff --git a/tests/SnifferTest.php b/tests/SnifferTest.php index f79373c..bd29969 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 function provideFindFencedBlocks() + public static function provideFindFencedBlocks() { return [ 'nothing to lint 1' => [