Skip to content

Commit 7abab1d

Browse files
committed
Update Bug13813IntegrationTest.php
1 parent 6450452 commit 7abab1d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/PHPStan/Analyser/Bug13813IntegrationTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ public function testBug13813(): void
2323
]);
2424
$this->assertCount(2, $analyzerResult->getAllPhpErrors());
2525
$this->assertCount(2, $analyzerResult->getFilteredPhpErrors());
26+
27+
$this->assertSame(
28+
'Warning: Undefined variable $x',
29+
$analyzerResult->getAllPhpErrors()[0]->getMessage()
30+
);
31+
$this->assertSame(
32+
'Warning: Undefined variable $x',
33+
$analyzerResult->getAllPhpErrors()[1]->getMessage()
34+
);
2635
}
2736

2837
/**

0 commit comments

Comments
 (0)