mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
[tests] Fix a couple of innocuous glitches.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user