示例#1
0
 public function testPopDelay()
 {
     $eta = time() + 3;
     $this->queue->push('item', $eta);
     $this->assertNoItemIsAvailable($this->queue);
     TimeUtils::callAt($eta, function () {
         $this->assertEquals('item', $this->queue->pop());
     }, !$this->supportsExpiredEta);
 }