Przeglądaj źródła

[tests] Fix some tests methods names.

Daniele Alessandri 9 lat temu
rodzic
commit
73c9b9d5be

+ 1 - 1
tests/Predis/Command/KeyExpireAtTest.php

@@ -61,7 +61,7 @@ class KeyExpireAtTest extends PredisCommandTestCase
     /**
      * @group connected
      */
-    public function testReturnsFalseOnNonExistingKeys()
+    public function testReturnsZeroOnNonExistingKeys()
     {
         $redis = $this->getClient();
 

+ 1 - 1
tests/Predis/Command/KeyExpireTest.php

@@ -61,7 +61,7 @@ class KeyExpireTest extends PredisCommandTestCase
     /**
      * @group connected
      */
-    public function testReturnsFalseOnNonExistingKeys()
+    public function testReturnsZeroOnNonExistingKeys()
     {
         $redis = $this->getClient();
 

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

@@ -75,7 +75,7 @@ class KeyPersistTest extends PredisCommandTestCase
     /**
      * @group connected
      */
-    public function testReturnsFalseOnNonExpiringKeys()
+    public function testReturnsZeroOnNonExpiringKeys()
     {
         $redis = $this->getClient();
 
@@ -87,7 +87,7 @@ class KeyPersistTest extends PredisCommandTestCase
     /**
      * @group connected
      */
-    public function testReturnsFalseOnNonExistentKeys()
+    public function testReturnsZeroOnNonExistentKeys()
     {
         $redis = $this->getClient();
 

+ 1 - 1
tests/Predis/Command/KeyPreciseExpireTest.php

@@ -61,7 +61,7 @@ class KeyPreciseExpireTest extends PredisCommandTestCase
     /**
      * @group connected
      */
-    public function testReturnsFalseOnNonExistingKeys()
+    public function testReturnsZeroOnNonExistingKeys()
     {
         $redis = $this->getClient();
 

+ 1 - 1
tests/Predis/Command/KeyRandomTest.php

@@ -63,7 +63,7 @@ class KeyRandomTest extends PredisCommandTestCase
     /**
      * @group connected
      */
-    public function testReturnsFalseOnNonExpiringKeys()
+    public function testReturnsZeroOnNonExpiringKeys()
     {
         $keys = array('key:1' => 1, 'key:2' => 2, 'key:3' => 3);
 

+ 1 - 1
tests/Predis/Command/KeyRenamePreserveTest.php

@@ -75,7 +75,7 @@ class KeyRenamePreserveTest extends PredisCommandTestCase
      * @expectedException \Predis\Response\ServerException
      * @expectedExceptionMessage ERR no such key
      */
-    public function testReturnsFalseOnNonExistingKeys()
+    public function testThrowsExceptionWhenRenamingNonExistingKeys()
     {
         $redis = $this->getClient();
 

+ 1 - 1
tests/Predis/Command/SetIsMemberTest.php

@@ -74,7 +74,7 @@ class SetIsMemberTest extends PredisCommandTestCase
     /**
      * @group connected
      */
-    public function testReturnsFalseOnNonExistingSet()
+    public function testReturnsZeroOnNonExistingSet()
     {
         $redis = $this->getClient();
 

+ 1 - 1
tests/Predis/Command/SetMembersTest.php

@@ -63,7 +63,7 @@ class SetMembersTest extends PredisCommandTestCase
     /**
      * @group connected
      */
-    public function testReturnsFalseOnNonExistingSet()
+    public function testReturnsEmptyArrayOnNonExistingSet()
     {
         $redis = $this->getClient();