setArguments() public method

public setArguments ( array $arguments )
$arguments array
コード例 #1
0
 /**
  * @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());
 }
コード例 #2
0
 /**
  * @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());
 }