@@ -17,8 +17,9 @@ class RequestFailEventTest extends TestCase
1717 public function testExceptionMessage (): void
1818 {
1919 $ throwable = new RuntimeException ('my message ' );
20+ $ trace = debug_backtrace (DEBUG_BACKTRACE_IGNORE_ARGS );
2021
21- $ event = new RequestFailEvent ('asd ' , [], $ throwable , 30 );
22+ $ event = new RequestFailEvent ('asd ' , [], $ throwable , 30 , $ trace );
2223 $ this ->assertStringContainsString ('my message ' , $ event ->getExceptionString ());
2324 $ this ->assertSame (RuntimeException::class, $ event ->getExceptionClass ());
2425 }
@@ -31,8 +32,9 @@ public function testDeserialization(): void
3132 'argument ' => 'value ' ,
3233 ],
3334 ];
35+ $ trace = debug_backtrace (DEBUG_BACKTRACE_IGNORE_ARGS );
3436
35- $ event = new RequestFailEvent ('asd ' , $ args , $ throwable , 30.22 );
37+ $ event = new RequestFailEvent ('asd ' , $ args , $ throwable , 30.22 , $ trace );
3638
3739 $ serialized = serialize ($ event );
3840 /** @var RequestFailEvent $unserialized */
@@ -56,8 +58,9 @@ public function testRepeatedSerializationDeserialization(): void
5658 'argument ' => 'value ' ,
5759 ],
5860 ];
61+ $ trace = debug_backtrace (DEBUG_BACKTRACE_IGNORE_ARGS );
5962
60- $ event = new RequestFailEvent ('asd ' , $ args , $ throwable , 30.22 );
63+ $ event = new RequestFailEvent ('asd ' , $ args , $ throwable , 30.22 , $ trace );
6164
6265 $ serialized = serialize ($ event );
6366 $ unserialized = unserialize ($ serialized );
0 commit comments