Do not parse response to HSET into boolean value.

This commit is contained in:
Daniele Alessandri
2015-07-24 15:26:00 +02:00
parent 231a3440f7
commit ae26ecc8bf
2 changed files with 4 additions and 12 deletions
+4 -4
View File
@@ -54,8 +54,8 @@ class HashSetTest extends PredisCommandTestCase
{
$command = $this->getCommand();
$this->assertTrue($command->parseResponse(1));
$this->assertFalse($command->parseResponse(0));
$this->assertSame(0, $command->parseResponse(0));
$this->assertSame(1, $command->parseResponse(1));
}
/**
@@ -65,8 +65,8 @@ class HashSetTest extends PredisCommandTestCase
{
$redis = $this->getClient();
$this->assertTrue($redis->hset('metavars', 'foo', 'bar'));
$this->assertTrue($redis->hset('metavars', 'hoge', 'piyo'));
$this->assertSame(1, $redis->hset('metavars', 'foo', 'bar'));
$this->assertSame(1, $redis->hset('metavars', 'hoge', 'piyo'));
$this->assertSame(array('bar', 'piyo'), $redis->hmget('metavars', 'foo', 'hoge'));
}