Browse Source

[tests] Fix a couple of innocuous glitches.

Daniele Alessandri 11 years ago
parent
commit
cfa456fdd1

+ 2 - 2
tests/Predis/Protocol/Text/Handler/BulkResponseTest.php

@@ -42,7 +42,7 @@ class BulkResponseTest extends PredisTestCase
     public function testBulk()
     {
         $bulk = "This is a bulk string.";
-        $bulkLengh = (string) strlen($bulk);
+        $bulkLengh = strlen($bulk);
 
         $handler = new Handler\BulkResponse();
 
@@ -54,7 +54,7 @@ class BulkResponseTest extends PredisTestCase
                    ->with($this->equalTo($bulkLengh + 2))
                    ->will($this->returnValue("$bulk\r\n"));
 
-        $this->assertSame($bulk, $handler->handle($connection, $bulkLengh));
+        $this->assertSame($bulk, $handler->handle($connection, (string) $bulkLengh));
     }
 
     /**

+ 0 - 1
tests/Predis/Replication/ReplicationStrategyTest.php

@@ -240,7 +240,6 @@ class ReplicationStrategyTest extends PredisTestCase
     {
         $commands = array(
             /* commands operating on the connection */
-            'EXISTS'                => 'read',
             'AUTH'                  => 'read',
             'SELECT'                => 'read',
             'ECHO'                  => 'read',