public function testExecutionWithinTimeout() { $loop = new Loop(1); $loop->execute(function () use($loop) { usleep(999999); $loop->end(); }); }