Skip to content

Commit f258583

Browse files
committed
kill mutations
1 parent 07b590b commit f258583

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/Rules/PHPUnit/AttributeRequiresPhpVersionRuleTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@
1212
final class AttributeRequiresPhpVersionRuleTest extends RuleTestCase
1313
{
1414

15-
private int $phpunitMajorVersion;
15+
private ?int $phpunitMajorVersion;
1616

17-
private int $phpunitMinorVersion;
17+
private ?int $phpunitMinorVersion;
1818

1919
private bool $deprecationRulesInstalled = true;
2020

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+
2129
public function testRuleOnPHPUnit115(): void
2230
{
2331
$this->phpunitMajorVersion = 11;

0 commit comments

Comments
 (0)