mirror of
https://github.com/predis/predis.git
synced 2026-09-13 20:07:28 +00:00
Added a new assertion for ZSCORE. This assertion will fail if tests are run against a Redis instance built before Git commit 96d8b4e.
This commit is contained in:
@@ -1004,6 +1004,7 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
|
||||
$this->assertEquals(20, $this->redis->zsetScore('zset', 'e'));
|
||||
|
||||
$this->assertNull($this->redis->zsetScore('zset', 'x'));
|
||||
$this->assertNull($this->redis->zsetScore('zsetDoesNotExist', 'a'));
|
||||
|
||||
RC::testForServerException($this, RC::EXCEPTION_WRONG_TYPE, function($test) {
|
||||
$test->redis->set('foo', 'bar');
|
||||
|
||||
Reference in New Issue
Block a user