From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sat, 9 Nov 2024 18:45:01 +0100
Subject: [ErrorHandler] Extend test expectation

---
 src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php b/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
index 8f57bb5..9738c88 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
+++ b/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
@@ -381,7 +381,7 @@ class ErrorHandlerTest extends TestCase
             restore_exception_handler();
         }
 
-        $this->assertSame('User Warning: foo stdClass@anonymous bar', $e->getMessage());
+        $this->assertStringMatchesFormat('User Warning: foo stdClass@anonymous%A bar', $e->getMessage());
     }
 
     public function testHandleDeprecation()
