Browse Source

Test suite: add test for the HASH type.

Daniele Alessandri 15 years ago
parent
commit
23b68d9415
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test/RedisCommandsTest.php

+ 3 - 0
test/RedisCommandsTest.php

@@ -203,6 +203,9 @@ class RedisCommandTestSuite extends PHPUnit_Framework_TestCase {
 
         $this->redis->zadd('fooZSet', 0, 'bar');
         $this->assertEquals('zset', $this->redis->type('fooZSet'));
+
+        $this->redis->hset('fooHash', 'value', 'bar');
+        $this->assertEquals('hash', $this->redis->type('fooHash'));
     }
 
     function testAppend() {