Replace futureTick for older versions
This commit is contained in:
parent
c5920ac1ce
commit
05b1e85365
@ -18,7 +18,7 @@ class IoServerTest extends \PHPUnit_Framework_TestCase {
|
||||
protected $reactor;
|
||||
|
||||
protected function tickLoop(LoopInterface $loop) {
|
||||
$loop->futureTick(function () use ($loop) {
|
||||
$loop->addTimer(0, function() use ($loop) {
|
||||
$loop->stop();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user