diff --git a/tests/unit/Server/IoServerTest.php b/tests/unit/Server/IoServerTest.php index e20115f..b2f210d 100644 --- a/tests/unit/Server/IoServerTest.php +++ b/tests/unit/Server/IoServerTest.php @@ -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(); });