Exemplo n.º 1
0
 public function testSetBit()
 {
     $this->key->setBit(0, 1);
     $this->key->setBit(4, 1);
     $reply = $this->rediska->getBit($this->key->getName(), 0);
     $this->assertEquals(1, $reply);
     $reply = $this->rediska->getBit($this->key->getName(), 1);
     $this->assertEquals(0, $reply);
     $reply = $this->rediska->getBit($this->key->getName(), 4);
     $this->assertEquals(1, $reply);
 }