@@ -75,7 +75,7 @@ public function testThatWrappedExceptionsRecursive()
7575 $ exception2 = new MyOwnException ('second ' );
7676 $ exception3 = new MyOwnException ('third ' );
7777
78- $ handlerException = new HandlerFailedException ($ envelope , [$ exception1 , $ exception2 , new DelayedMessageHandlingException ([$ exception3 ])]);
78+ $ handlerException = new HandlerFailedException ($ envelope , [$ exception1 , $ exception2 , new DelayedMessageHandlingException ([$ exception3 ], $ envelope )]);
7979 $ this ->assertSame ([$ exception1 , $ exception2 , $ exception3 ], $ handlerException ->getWrappedExceptions (recursive: true ));
8080 }
8181
@@ -86,7 +86,7 @@ public function testThatWrappedExceptionsRecursiveStringKeys()
8686 $ exception2 = new MyOwnException ('second ' );
8787 $ exception3 = new MyOwnException ('third ' );
8888
89- $ handlerException = new HandlerFailedException ($ envelope , ['first ' => $ exception1 , 'second ' => $ exception2 , new DelayedMessageHandlingException (['third ' => $ exception3 ])]);
89+ $ handlerException = new HandlerFailedException ($ envelope , ['first ' => $ exception1 , 'second ' => $ exception2 , new DelayedMessageHandlingException (['third ' => $ exception3 ], $ envelope )]);
9090 $ this ->assertSame (['first ' => $ exception1 , 'second ' => $ exception2 , 'third ' => $ exception3 ], $ handlerException ->getWrappedExceptions (recursive: true ));
9191 }
9292
@@ -97,7 +97,7 @@ public function testThatWrappedExceptionsByClassRecursive()
9797 $ exception2 = new MyOwnException ('second ' );
9898 $ exception3 = new MyOwnException ('third ' );
9999
100- $ handlerException = new HandlerFailedException ($ envelope , [$ exception1 , $ exception2 , new DelayedMessageHandlingException ([$ exception3 ])]);
100+ $ handlerException = new HandlerFailedException ($ envelope , [$ exception1 , $ exception2 , new DelayedMessageHandlingException ([$ exception3 ], $ envelope )]);
101101 $ this ->assertSame ([$ exception2 , $ exception3 ], $ handlerException ->getWrappedExceptions (class: MyOwnException::class, recursive: true ));
102102 }
103103}
0 commit comments