Skip to content

Commit 178549e

Browse files
zonuexecursoragent
andcommitted
fixup! Do not match ignored error messages repeatedly for multiple paths
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7a1a987 commit 178549e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/PHPStan/Analyser/AnalyserTest.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ public function testFileWithAnIgnoredErrorIdentifierAndPathWithWrongIdentifier()
176176
$this->assertInstanceOf(Error::class, $result[0]);
177177
$this->assertSame('Fail.', $result[0]->getMessage());
178178
$this->assertInstanceOf(Error::class, $result[1]);
179-
$this->assertSame('Ignored error pattern wrong.identifier in path ' . __DIR__ . '/data/bootstrap-error.php was not matched in reported errors.', $result[1]->getMessage());
179+
$expectedPath = str_replace('/', DIRECTORY_SEPARATOR, __DIR__ . '/data/bootstrap-error.php');
180+
$this->assertSame('Ignored error pattern wrong.identifier in path ' . $expectedPath . ' was not matched in reported errors.', $result[1]->getMessage());
180181
}
181182

182183
public function testIgnoreErrorByPath(): void

0 commit comments

Comments
 (0)