Skip to content

Commit

Permalink
fix: SwooleEvent.php
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz6chez committed Oct 8, 2024
1 parent 4e8009f commit 572ac39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/EventsCase/SwooleEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function testClearAllTimer()

$timerMock = m::mock('alias:Swoole\Timer');
$timerMock->shouldReceive('clear')->andReturn(true);
$timerMock->shouldReceive('after')->andReturnSelf();
$timerMock->shouldReceive('tick')->andReturnSelf();

$swooleEvent->add(1, EventInterface::EV_TIMER, function () {
echo 'Timer triggered';
Expand Down

0 comments on commit 572ac39

Please sign in to comment.