This commit is contained in:
Viktor Szépe
2025-10-04 01:22:43 +02:00
committed by GitHub
parent 8a0c70baa5
commit d9dfefd247
7 changed files with 10 additions and 10 deletions
@@ -42,7 +42,7 @@ class BulkResponseTest extends PredisTestCase
public function testBulk(): void
{
$bulk = 'This is a bulk string.';
$bulkLengh = strlen($bulk);
$bulkLength = strlen($bulk);
$connection = $this->getMockConnectionOfType('Predis\Connection\CompositeConnectionInterface');
$connection
@@ -51,12 +51,12 @@ class BulkResponseTest extends PredisTestCase
$connection
->expects($this->once())
->method('readBuffer')
->with($this->equalTo($bulkLengh + 2))
->with($this->equalTo($bulkLength + 2))
->willReturn("$bulk\r\n");
$handler = new Handler\BulkResponse();
$this->assertSame($bulk, $handler->handle($connection, (string) $bulkLengh));
$this->assertSame($bulk, $handler->handle($connection, (string) $bulkLength));
}
/**