Skip to content

Commit

Permalink
[tests] Fix a couple of innocuous glitches.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrk committed Dec 22, 2013
1 parent 2aab474 commit 6306509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/Predis/Protocol/Text/ResponseBulkHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testZeroLengthBulk()
public function testBulk()
{
$bulk = "This is a bulk string.";
$bulkLengh = (string) strlen($bulk);
$bulkLengh = strlen($bulk);

$handler = new ResponseBulkHandler();

Expand All @@ -54,7 +54,7 @@ public function testBulk()
->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));
}

/**
Expand Down
1 change: 0 additions & 1 deletion tests/Predis/Replication/ReplicationStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ protected function getExpectedCommands($type = null)
{
$commands = array(
/* commands operating on the connection */
'EXISTS' => 'read',
'AUTH' => 'read',
'SELECT' => 'read',
'ECHO' => 'read',
Expand Down

0 comments on commit 6306509

Please sign in to comment.