/** * @group disconnected */ public function testSetAndGetHash() { $hash = "key-hash"; $arguments = array('SET', 'key', 'value'); $command = new RawCommand($arguments); $this->assertNull($command->getHash()); $command->setHash($hash); $this->assertSame($hash, $command->getHash()); $command->setArguments(array('hoge', 'piyo')); $this->assertNull($command->getHash()); }
/** * @group disconnected */ public function testSetAndGetHash() { $slot = 1024; $arguments = array('SET', 'key', 'value'); $command = new RawCommand($arguments); $this->assertNull($command->getSlot()); $command->setSlot($slot); $this->assertSame($slot, $command->getSlot()); $command->setArguments(array('hoge', 'piyo')); $this->assertNull($command->getSlot()); }