public function testCancelBatch() { $this->client->startBatch(); $this->client->count("foobar", 4); $this->client->cancelBatch(); $this->assertFalse($this->client->isBatch()); $this->assertNull($this->connection->getLastMessage()); }
public function testSet() { $this->client->set("barfoo", 666); $message = $this->connection->getLastMessage(); $this->assertEquals('test.barfoo:666|s', $message); }