getCommand(); $command->setArguments([]); $this->assertSame([], $command->getArguments()); } /** * @group disconnected */ public function testParseResponse(): void { $this->assertSame('OK', $this->getCommand()->parseResponse('OK')); } /** * @group connected */ public function testFlushesTheEntireLogicalDatabase(): void { $redis = $this->getClient(); $redis->set('foo', 'bar'); $this->assertEquals('OK', $redis->flushdb()); $this->assertSame(0, $redis->exists('foo')); } }