Explorar o código

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 %!s(int64=15) %!d(string=hai) anos
pai
achega
cb2a57dbac
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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');