Skip to content

Commit 147794c

Browse files
committed
add rule test
1 parent 435960b commit 147794c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/PHPStan/Rules/Comparison/NumberComparisonOperatorsConstantConditionRuleTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,12 @@ public function testBug13874(): void
290290

291291
public function testBug12163(): void
292292
{
293-
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-12163.php'], []);
293+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-12163.php'], [
294+
[
295+
'Comparison operation "<" between int<min, 0> and int<1, max> is always true.',
296+
41
297+
]
298+
]);
294299
}
295300

296301
}

0 commit comments

Comments
 (0)