public function createTimer($interval = 1.0, callable $handler = null, $periodic = false, $data = null)
{
if (!isset($this->loop)) {
$this->loop = new LoopModelMock();
}
$handler = $handler === null ? function () {
} : $handler;
return new Timer($this->loop, $interval, $handler, $periodic, $data);
}