public function setUp() { if (!class_exists('Redis')) { $this->markTestSkipped('Redis not running.'); } $this->redis = new Client(['servers' => ['default' => ['host' => '127.0.0.1', 'port' => 6379, 'database' => 5]]]); $this->redis->flushdb(); $this->queue = new RedisQueue($this->redis); $this->queue->setContainer($this->mock(ContainerInterface::class)); $this->queue->setEncrypter($this->mock(EncrypterContract::class)); }