Do not parse response to PFADD into boolean value.

This commit is contained in:
Daniele Alessandri
2015-07-24 15:29:45 +02:00
parent 3fdfc50683
commit 87921f7a05
2 changed files with 2 additions and 10 deletions
-8
View File
@@ -32,12 +32,4 @@ class HyperLogLogAdd extends Command
{
return self::normalizeVariadic($arguments);
}
/**
* {@inheritdoc}
*/
public function parseResponse($data)
{
return (bool) $data;
}
}
+2 -2
View File
@@ -69,8 +69,8 @@ class HyperLogLogAddTest extends PredisCommandTestCase
{
$command = $this->getCommand();
$this->assertSame(false, $command->parseResponse(0));
$this->assertSame(true, $command->parseResponse(1));
$this->assertSame(0, $command->parseResponse(0));
$this->assertSame(1, $command->parseResponse(1));
}
/**