Przeglądaj źródła

Added a new assertion for ZSCORE. This assertion will fail if tests are run against a Redis instance built before Git commit 96d8b4e.

Daniele Alessandri 15 lat temu
rodzic
commit
cb2a57dbac
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      test/RedisCommandsTest.php

+ 1 - 0
test/RedisCommandsTest.php

@@ -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');