public function testCancelBatch()
 {
     $this->client->startBatch();
     $this->client->count("foobar", 4);
     $this->client->cancelBatch();
     $this->assertFalse($this->client->isBatch());
     $this->assertNull($this->connection->getLastMessage());
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function isBatch()
 {
     return $this->client->isBatch();
 }