We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b590b commit f258583Copy full SHA for f258583
tests/Rules/PHPUnit/AttributeRequiresPhpVersionRuleTest.php
@@ -12,12 +12,20 @@
12
final class AttributeRequiresPhpVersionRuleTest extends RuleTestCase
13
{
14
15
- private int $phpunitMajorVersion;
+ private ?int $phpunitMajorVersion;
16
17
- private int $phpunitMinorVersion;
+ private ?int $phpunitMinorVersion;
18
19
private bool $deprecationRulesInstalled = true;
20
21
+ public function testRuleOnPHPUnitUnknown(): void
22
+ {
23
+ $this->phpunitMajorVersion = null;
24
+ $this->phpunitMinorVersion = null;
25
+
26
+ $this->analyse([__DIR__ . '/data/requires-php-version.php'], []);
27
+ }
28
29
public function testRuleOnPHPUnit115(): void
30
31
$this->phpunitMajorVersion = 11;
0 commit comments