Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use Redis 'withscores' boolean syntax
Browse files Browse the repository at this point in the history
owenvoke committed Jul 9, 2019
1 parent 6d6483a commit 02699cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Redis/RedisConnectionTest.php
Original file line number Diff line number Diff line change
@@ -293,7 +293,7 @@ public function test_it_returns_range_in_sorted_set()
$this->assertEquals(['jeffrey', 'matt'], $redis->zrange('set', 0, 1));
$this->assertEquals(['jeffrey', 'matt', 'taylor'], $redis->zrange('set', 0, -1));

$this->assertEquals(['jeffrey' => 1, 'matt' => 5], $redis->zrange('set', 0, 1, 'withscores'));
$this->assertEquals(['jeffrey' => 1, 'matt' => 5], $redis->zrange('set', 0, 1, true));

$redis->flushall();
}
@@ -306,7 +306,7 @@ public function test_it_returns_rev_range_in_sorted_set()
$this->assertEquals(['taylor', 'matt'], $redis->ZREVRANGE('set', 0, 1));
$this->assertEquals(['taylor', 'matt', 'jeffrey'], $redis->ZREVRANGE('set', 0, -1));

$this->assertEquals(['matt' => 5, 'taylor' => 10], $redis->ZREVRANGE('set', 0, 1, 'withscores'));
$this->assertEquals(['matt' => 5, 'taylor' => 10], $redis->ZREVRANGE('set', 0, 1, true));

$redis->flushall();
}

0 comments on commit 02699cd

Please sign in to comment.