[tests] Fix a couple of innocuous glitches.

This commit is contained in:
Daniele Alessandri
2013-12-22 14:45:52 +01:00
parent 6a577a0eb5
commit cfa456fdd1
2 changed files with 2 additions and 3 deletions
@@ -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));
}
/**
@@ -240,7 +240,6 @@ class ReplicationStrategyTest extends PredisTestCase
{
$commands = array(
/* commands operating on the connection */
'EXISTS' => 'read',
'AUTH' => 'read',
'SELECT' => 'read',
'ECHO' => 'read',