File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function testDispatchNotifiesAllRelevantListenersAndReturnsEventWhenNoErr
4040 $ this ->getListenerProvider ()
4141 ->getListenersForEvent ($ event )
4242 ->willReturn ($ listeners )
43- ->shouldBeCalledOnce ( );
43+ ->shouldBeCalledTimes ( 1 );
4444
4545 $ dispatcher = $ this ->getDispatcher ();
4646
@@ -91,7 +91,7 @@ public function isPropagationStopped() : bool
9191 $ this ->getListenerProvider ()
9292 ->getListenersForEvent ($ event )
9393 ->willReturn ($ listeners )
94- ->shouldBeCalledOnce ( );
94+ ->shouldBeCalledTimes ( 1 );
9595
9696 $ dispatcher = $ this ->getDispatcher ();
9797
Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ public function testDispatchesErrorEventIfAListenerRaisesAnExceptionAndThenReThr
5858 $ this ->provider
5959 ->getListenersForEvent ($ event )
6060 ->willReturn ([$ errorRaisingListener ])
61- ->shouldBeCalledOnce ( );
61+ ->shouldBeCalledTimes ( 1 );
6262
6363 $ this ->provider
6464 ->getListenersForEvent (Argument::type (ErrorEvent::class))
6565 ->willReturn ([$ errorListener ])
66- ->shouldBeCalledOnce ( );
66+ ->shouldBeCalledTimes ( 1 );
6767
6868 $ this ->expectException (RuntimeException::class);
6969 $ this ->expectExceptionMessage ('TRIGGERED ' );
You can’t perform that action at this time.
0 commit comments