tick(); // simulate a bunch of processing on stream events, // part of which schedules a future timer... sleep(1); $timers->add(new Timer(0.5, function () { $this->fail("Timer shouldn't be called"); })); $timers->tick(); $this->assertTrue(true); } }