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); }
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); }