From e563ade10390ffcbc49c235470f5140731f9df3f Mon Sep 17 00:00:00 2001 From: sunxyw Date: Tue, 7 Feb 2023 16:03:37 +0800 Subject: [PATCH] fix HttpEventListenerTest strict arguments match --- tests/ZM/Event/Listener/HttpEventListenerTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/ZM/Event/Listener/HttpEventListenerTest.php b/tests/ZM/Event/Listener/HttpEventListenerTest.php index 6963c2ea..760a888b 100644 --- a/tests/ZM/Event/Listener/HttpEventListenerTest.php +++ b/tests/ZM/Event/Listener/HttpEventListenerTest.php @@ -99,11 +99,7 @@ class HttpEventListenerTest extends TestCase { $handler = $this->prophesize(self::class); if ($should_be_called) { - $handler->fakeHandler( - Argument::type('array'), - Argument::type(ServerRequest::class), - Argument::type(\HttpRequestEvent::class) - )->will(fn () => $callback ? $callback() : 'OK!')->shouldBeCalledOnce(); + $handler->fakeHandler()->will(fn () => $callback ? $callback() : 'OK!')->shouldBeCalledOnce(); } else { $handler->fakeHandler(Argument::cetera())->shouldNotBeCalled(); }