Replace futureTick for older versions

This commit is contained in:
Chris Boden 2021-12-12 11:27:06 -05:00
parent c5920ac1ce
commit 05b1e85365

View File

@ -18,7 +18,7 @@ class IoServerTest extends \PHPUnit_Framework_TestCase {
protected $reactor; protected $reactor;
protected function tickLoop(LoopInterface $loop) { protected function tickLoop(LoopInterface $loop) {
$loop->futureTick(function () use ($loop) { $loop->addTimer(0, function() use ($loop) {
$loop->stop(); $loop->stop();
}); });