@@ -75,7 +75,7 @@ public function testThatWrappedExceptionsRecursive()
75
75
$ exception2 = new MyOwnException ('second ' );
76
76
$ exception3 = new MyOwnException ('third ' );
77
77
78
- $ handlerException = new HandlerFailedException ($ envelope , [$ exception1 , $ exception2 , new DelayedMessageHandlingException ([$ exception3 ])]);
78
+ $ handlerException = new HandlerFailedException ($ envelope , [$ exception1 , $ exception2 , new DelayedMessageHandlingException ([$ exception3 ], $ envelope )]);
79
79
$ this ->assertSame ([$ exception1 , $ exception2 , $ exception3 ], $ handlerException ->getWrappedExceptions (recursive: true ));
80
80
}
81
81
@@ -86,7 +86,7 @@ public function testThatWrappedExceptionsRecursiveStringKeys()
86
86
$ exception2 = new MyOwnException ('second ' );
87
87
$ exception3 = new MyOwnException ('third ' );
88
88
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 )]);
90
90
$ this ->assertSame (['first ' => $ exception1 , 'second ' => $ exception2 , 'third ' => $ exception3 ], $ handlerException ->getWrappedExceptions (recursive: true ));
91
91
}
92
92
@@ -97,7 +97,7 @@ public function testThatWrappedExceptionsByClassRecursive()
97
97
$ exception2 = new MyOwnException ('second ' );
98
98
$ exception3 = new MyOwnException ('third ' );
99
99
100
- $ handlerException = new HandlerFailedException ($ envelope , [$ exception1 , $ exception2 , new DelayedMessageHandlingException ([$ exception3 ])]);
100
+ $ handlerException = new HandlerFailedException ($ envelope , [$ exception1 , $ exception2 , new DelayedMessageHandlingException ([$ exception3 ], $ envelope )]);
101
101
$ this ->assertSame ([$ exception2 , $ exception3 ], $ handlerException ->getWrappedExceptions (class: MyOwnException::class, recursive: true ));
102
102
}
103
103
}
0 commit comments