Skip to content

Commit

Permalink
Revert "DEP Use PHPUnit 11" (#15)
Browse files Browse the repository at this point in the history
This reverts commit ede5dc6.
  • Loading branch information
GuySartorelli authored Oct 1, 2024
1 parent 75545b6 commit 740c421
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"bin/mdphpcs"
],
"require-dev": {
"phpunit/phpunit": "^11.3"
"phpunit/phpunit": "^9.6"
}
}
6 changes: 3 additions & 3 deletions tests/SnifferTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -48,7 +48,7 @@ public function testFindFencedCodeBlocks(
}
}

public static function provideFindFencedBlocks()
public function provideFindFencedBlocks()
{
return [
'nothing to lint 1' => [
Expand Down

0 comments on commit 740c421

Please sign in to comment.