Ver código fonte

Do not parse response to PFADD into boolean value.

Daniele Alessandri 9 anos atrás
pai
commit
87921f7a05

+ 0 - 8
src/Command/HyperLogLogAdd.php

@@ -32,12 +32,4 @@ class HyperLogLogAdd extends Command
     {
         return self::normalizeVariadic($arguments);
     }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function parseResponse($data)
-    {
-        return (bool) $data;
-    }
 }

+ 2 - 2
tests/Predis/Command/HyperLogLogAddTest.php

@@ -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));
     }
 
     /**