From 60dac0cb4c625905ad06dc64e504d354f80fccb5 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 4 Feb 2021 18:21:43 +0100 Subject: [PATCH] [DeprecationErrorHandler] Fix tests --- .../PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php index 2892e88f7d..9cb0a0e32c 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php @@ -174,6 +174,8 @@ class DeprecationTest extends TestCase { $trace = [ ['class' => 'MyClass1', 'function' => 'myMethod'], + ['function' => 'trigger_error'], + ['class' => SymfonyTestsListenerTrait::class, 'function' => 'endTest'], ['class' => $traceClass, 'function' => 'myMethod'], ]; $deprecation = new Deprecation($message, $trace, $file);