Ejemplo n.º 1
0
 function it_handles_queued_garbage_properly(Redis $redis)
 {
     $redis->rpoplpush("queue:my-queue:pending", "queue:my-queue:processing")->willReturn('id');
     $redis->get("job:id")->willReturn('not json');
     $this->pop(['my-queue'])->shouldReturn(null);
 }