mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 05:04:51 +08:00
fix HttpEventListenerTest strict arguments match
This commit is contained in:
parent
5a870c703d
commit
e563ade103
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user