diff --git a/composer.json b/composer.json index d89c66e..65c0dbe 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "php": ">=5.4.2" , "ratchet/rfc6455": "^0.3" , "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5" + , "react/event-loop": ">=0.4" , "guzzlehttp/psr7": "^1.0" , "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0" , "symfony/routing": "^2.6|^3.0|^4.0|^5.0" diff --git a/tests/unit/Server/IoServerTest.php b/tests/unit/Server/IoServerTest.php index b2f210d..0decfcb 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->addTimer(0, function() use ($loop) { + $loop->futureTIck(function () use ($loop) { $loop->stop(); });