diff --git a/tests/Predis/Protocol/Text/ResponseBulkHandlerTest.php b/tests/Predis/Protocol/Text/ResponseBulkHandlerTest.php index f400c634..930076d7 100644 --- a/tests/Predis/Protocol/Text/ResponseBulkHandlerTest.php +++ b/tests/Predis/Protocol/Text/ResponseBulkHandlerTest.php @@ -42,7 +42,7 @@ class ResponseBulkHandlerTest extends PredisTestCase public function testBulk() { $bulk = "This is a bulk string."; - $bulkLengh = (string) strlen($bulk); + $bulkLengh = strlen($bulk); $handler = new ResponseBulkHandler(); @@ -54,7 +54,7 @@ class ResponseBulkHandlerTest 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)); } /** diff --git a/tests/Predis/Replication/ReplicationStrategyTest.php b/tests/Predis/Replication/ReplicationStrategyTest.php index ccb633f6..187049ae 100644 --- a/tests/Predis/Replication/ReplicationStrategyTest.php +++ b/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',