diff --git a/tests/Unit/Helper/BacktraceIgnoreMatcherTest.php b/tests/Unit/Helper/BacktraceIgnoreMatcherTest.php index 980d572c4..ae0fbfe75 100644 --- a/tests/Unit/Helper/BacktraceIgnoreMatcherTest.php +++ b/tests/Unit/Helper/BacktraceIgnoreMatcherTest.php @@ -34,7 +34,7 @@ public function testFileIgnorance(): void $backtrace[2] = $backtrace[0]; - $this->assertTrue(BacktraceIgnoreMatcher::isIgnoredByFile($backtrace, [$file])); + $this->assertTrue(BacktraceIgnoreMatcher::isIgnoredByFile($backtrace, [preg_quote($file)])); $this->assertTrue( BacktraceIgnoreMatcher::isIgnoredByFile( $backtrace,