Skip to content

Commit fe0ae98

Browse files
committed
Assert new error
1 parent dfb06cc commit fe0ae98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,9 @@ public function testBug5527(): void
457457
public function testBug5639(): void
458458
{
459459
$errors = $this->runAnalyse(__DIR__ . '/data/bug-5639.php');
460-
$this->assertNoErrors($errors);
460+
$this->assertCount(1, $errors);
461+
$this->assertSame('If condition is always false.', $errors[0]->getMessage());
462+
$this->assertSame(5, $errors[0]->getLine());
461463
}
462464

463465
public function testBug5657(): void

0 commit comments

Comments
 (0)