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 dfb06cc commit fe0ae98Copy full SHA for fe0ae98
tests/PHPStan/Analyser/AnalyserIntegrationTest.php
@@ -457,7 +457,9 @@ public function testBug5527(): void
457
public function testBug5639(): void
458
{
459
$errors = $this->runAnalyse(__DIR__ . '/data/bug-5639.php');
460
- $this->assertNoErrors($errors);
+ $this->assertCount(1, $errors);
461
+ $this->assertSame('If condition is always false.', $errors[0]->getMessage());
462
+ $this->assertSame(5, $errors[0]->getLine());
463
}
464
465
public function testBug5657(): void
0 commit comments