mirror of
https://github.com/predis/predis.git
synced 2026-08-25 02:39:39 +00:00
Backported changes from the mainline library to the PHP 5.2 branch (up to commit 84cb28e)
This commit is contained in:
@@ -93,7 +93,7 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$this->assertEquals('PING', $cmd->getCommandId());
|
||||
$this->assertFalse($cmd->closesConnection());
|
||||
$this->assertFalse($cmd->canBeHashed());
|
||||
$this->assertNull($cmd->getHash(new Predis_Utilities_HashRing()));
|
||||
$this->assertNull($cmd->getHash(new Predis_Distribution_HashRing()));
|
||||
$this->assertEquals("PING\r\n", $cmd->invoke());
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$this->assertEquals('GET', $cmd->getCommandId());
|
||||
$this->assertFalse($cmd->closesConnection());
|
||||
$this->assertTrue($cmd->canBeHashed());
|
||||
$this->assertNotNull($cmd->getHash(new Predis_Utilities_HashRing()));
|
||||
$this->assertNotNull($cmd->getHash(new Predis_Distribution_HashRing()));
|
||||
$this->assertEquals("GET key\r\n", $cmd->invoke());
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$this->assertEquals('SET', $cmd->getCommandId());
|
||||
$this->assertFalse($cmd->closesConnection());
|
||||
$this->assertTrue($cmd->canBeHashed());
|
||||
$this->assertNotNull($cmd->getHash(new Predis_Utilities_HashRing()));
|
||||
$this->assertNotNull($cmd->getHash(new Predis_Distribution_HashRing()));
|
||||
$this->assertEquals("SET key 5\r\nvalue\r\n", $cmd->invoke());
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$this->assertEquals('MSET', $cmd->getCommandId());
|
||||
$this->assertFalse($cmd->closesConnection());
|
||||
$this->assertFalse($cmd->canBeHashed());
|
||||
$this->assertNull($cmd->getHash(new Predis_Utilities_HashRing()));
|
||||
$this->assertNull($cmd->getHash(new Predis_Distribution_HashRing()));
|
||||
$this->assertEquals("*5\r\n$4\r\nMSET\r\n$4\r\nkey1\r\n$6\r\nvalue1\r\n$4\r\nkey2\r\n$6\r\nvalue2\r\n", $cmd->invoke());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user