File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function testHandleWithException()
80
80
$ message = new DummyMessage ('dummy message ' );
81
81
82
82
$ bus = $ this ->getMockBuilder (MessageBusInterface::class)->getMock ();
83
- $ bus ->method ('dispatch ' )->with ($ message )->will ( $ this -> throwException ( new \RuntimeException ('foo ' ) ));
83
+ $ bus ->method ('dispatch ' )->with ($ message )->willThrowException ( new \RuntimeException ('foo ' ));
84
84
$ bus = new TraceableMessageBus ($ bus );
85
85
86
86
$ collector = new MessengerDataCollector ();
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public function testItTracesExceptions()
70
70
$ message = new DummyMessage ('Hello ' );
71
71
72
72
$ bus = $ this ->getMockBuilder (MessageBusInterface::class)->getMock ();
73
- $ bus ->expects ($ this ->once ())->method ('dispatch ' )->with ($ message )->will ( $ this -> throwException ( $ exception = new \RuntimeException ('Meh. ' ) ));
73
+ $ bus ->expects ($ this ->once ())->method ('dispatch ' )->with ($ message )->willThrowException ( $ exception = new \RuntimeException ('Meh. ' ));
74
74
75
75
$ traceableBus = new TraceableMessageBus ($ bus );
76
76
You can’t perform that action at this time.
0 commit comments