From cfa456fdd12456635c4811cd79136e31e2c3036b Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Sun, 22 Dec 2013 14:45:52 +0100 Subject: [PATCH] [tests] Fix a couple of innocuous glitches. --- tests/Predis/Protocol/Text/Handler/BulkResponseTest.php | 4 ++-- tests/Predis/Replication/ReplicationStrategyTest.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php b/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php index 1b9ac00d..4993acb5 100644 --- a/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php +++ b/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)); } /** diff --git a/tests/Predis/Replication/ReplicationStrategyTest.php b/tests/Predis/Replication/ReplicationStrategyTest.php index a9aa435b..e8142d26 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',