Skip to content

Commit e0131a2

Browse files
authored
Optimized Hyperf\Coordinator\Timer::tick() to run the callback inside Hyperf\Coroutine\wait() so it executes in a properly managed coroutine context. (#7761)
1 parent ab3c9a7 commit e0131a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/Cases/FormRequestTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public function testSceneForFormRequest()
154154
RequestContext::set($psrRequest);
155155
ResponseContext::set(new Response());
156156
$container = Mockery::mock(ContainerInterface::class);
157+
$container->shouldReceive('has')->with(Waiter::class)->andReturnTrue();
157158
$container->shouldReceive('get')->with(Waiter::class)->andReturn(new Waiter());
158159
ApplicationContext::setContainer($container);
159160
$translator = new Translator(new ArrayLoader(), 'en');

0 commit comments

Comments
 (0)