فهرست منبع

[tests] Add "count" argument to SRANDMEMBER (since Redis >= 2.6).

Daniele Alessandri 11 سال پیش
والد
کامیت
862da9a3b2
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      tests/Predis/Command/SetRandomMemberTest.php

+ 2 - 2
tests/Predis/Command/SetRandomMemberTest.php

@@ -40,8 +40,8 @@ class SetRandomMemberTest extends CommandTestCase
      */
      */
     public function testFilterArguments()
     public function testFilterArguments()
     {
     {
-        $arguments = array('key');
-        $expected = array('key');
+        $arguments = array('key', 1);
+        $expected = array('key', 1);
 
 
         $command = $this->getCommand();
         $command = $this->getCommand();
         $command->setArguments($arguments);
         $command->setArguments($arguments);