Skip to content

Commit 71bc2c8

Browse files
committed
fix
1 parent 59ee094 commit 71bc2c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/Rules/PHPUnit/DataProviderDataRuleTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,11 @@ public function testNamedArgumentsInDataProviders(?int $phpunitVersion): void
324324
$this->phpunitVersion = $phpunitVersion;
325325

326326
if ($phpunitVersion >= 11) {
327+
if (PHP_VERSION_ID < 80000) {
328+
self::markTestSkipped('PHPUnit11 requires PHP 8.0+');
329+
}
330+
327331
$errors = [];
328-
$this->analyse([__DIR__ . '/data/data-provider-named-args.php'], [
329-
]);
330332
} else {
331333
$errors = [
332334
[

0 commit comments

Comments
 (0)