mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
fix HttpEventListenerTest strict arguments match
This commit is contained in:
@@ -99,11 +99,7 @@ class HttpEventListenerTest extends TestCase
|
|||||||
{
|
{
|
||||||
$handler = $this->prophesize(self::class);
|
$handler = $this->prophesize(self::class);
|
||||||
if ($should_be_called) {
|
if ($should_be_called) {
|
||||||
$handler->fakeHandler(
|
$handler->fakeHandler()->will(fn () => $callback ? $callback() : 'OK!')->shouldBeCalledOnce();
|
||||||
Argument::type('array'),
|
|
||||||
Argument::type(ServerRequest::class),
|
|
||||||
Argument::type(\HttpRequestEvent::class)
|
|
||||||
)->will(fn () => $callback ? $callback() : 'OK!')->shouldBeCalledOnce();
|
|
||||||
} else {
|
} else {
|
||||||
$handler->fakeHandler(Argument::cetera())->shouldNotBeCalled();
|
$handler->fakeHandler(Argument::cetera())->shouldNotBeCalled();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user