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:
Daniele Alessandri
2009-11-13 08:58:26 +01:00
parent afa72fceb2
commit cb2a57dbac
+1
View File
@@ -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');