Skip to content

Commit 02699cd

Browse files
committed
Update to use Redis 'withscores' boolean syntax
1 parent 6d6483a commit 02699cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Redis/RedisConnectionTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function test_it_returns_range_in_sorted_set()
293293
$this->assertEquals(['jeffrey', 'matt'], $redis->zrange('set', 0, 1));
294294
$this->assertEquals(['jeffrey', 'matt', 'taylor'], $redis->zrange('set', 0, -1));
295295

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

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

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

311311
$redis->flushall();
312312
}

0 commit comments

Comments
 (0)