Explorar o código

[tests] Update tests for Predis\Command\Command.

Daniele Alessandri %!s(int64=11) %!d(string=hai) anos
pai
achega
41ea336175
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      tests/Predis/Command/CommandTest.php

+ 7 - 0
tests/Predis/Command/CommandTest.php

@@ -108,6 +108,13 @@ class CommandTest extends StandardTestCase
 
         $command->setHash($hash);
         $this->assertSame($hash, $command->getHash());
+
+        $command->setArguments(array('key'));
+        $this->assertNull($command->getHash());
+
+        $command->setHash($hash);
+        $command->setRawArguments(array('key'));
+        $this->assertNull($command->getHash());
     }
 
     /**