Преглед на файлове

[tests] Fix a couple of innocuous glitches.

Daniele Alessandri преди 11 години
родител
ревизия
cfa456fdd1
променени са 2 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 2
      tests/Predis/Protocol/Text/Handler/BulkResponseTest.php
  2. 0 1
      tests/Predis/Replication/ReplicationStrategyTest.php

+ 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',