diff --git a/src/Command/SetMove.php b/src/Command/SetMove.php index 83e6c7e5..46783dd7 100644 --- a/src/Command/SetMove.php +++ b/src/Command/SetMove.php @@ -24,12 +24,4 @@ class SetMove extends Command { return 'SMOVE'; } - - /** - * {@inheritdoc} - */ - public function parseResponse($data) - { - return (bool) $data; - } } diff --git a/tests/Predis/Command/SetMoveTest.php b/tests/Predis/Command/SetMoveTest.php index 561f7b2a..9b9d195e 100644 --- a/tests/Predis/Command/SetMoveTest.php +++ b/tests/Predis/Command/SetMoveTest.php @@ -54,8 +54,8 @@ class SetMoveTest 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)); } /** @@ -67,8 +67,8 @@ class SetMoveTest extends PredisCommandTestCase $redis->sadd('letters:source', 'a', 'b', 'c'); - $this->assertTrue($redis->smove('letters:source', 'letters:destination', 'b')); - $this->assertFalse($redis->smove('letters:source', 'letters:destination', 'z')); + $this->assertSame(1, $redis->smove('letters:source', 'letters:destination', 'b')); + $this->assertSame(0, $redis->smove('letters:source', 'letters:destination', 'z')); $this->assertSameValues(array('a', 'c'), $redis->smembers('letters:source')); $this->assertSameValues(array('b'), $redis->smembers('letters:destination'));