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
+1 -1
View File
@@ -1,7 +1,7 @@
name-template: 'v$NEXT_MINOR_VERSION'
tag-template: 'v$NEXT_MINOR_VERSION'
change-template: '- $TITLE (#$NUMBER)'
filter-by-comitish: true
filter-by-commitish: true
commitish: v3.x
autolabeler:
+2 -2
View File
@@ -34,11 +34,11 @@ class SimpleDebuggableConnection extends StreamConnection
private function storeDebug(CommandInterface $command, $direction)
{
$firtsArg = $command->getArgument(0);
$firstArg = $command->getArgument(0);
$timestamp = round(microtime(true) - $this->tstart, 4);
$debug = $command->getId();
$debug .= isset($firtsArg) ? " $firtsArg " : ' ';
$debug .= isset($firstArg) ? " $firstArg " : ' ';
$debug .= "$direction $this";
$debug .= " [{$timestamp}s]";
+1 -1
View File
@@ -91,7 +91,7 @@ class APPEND_Test extends PredisCommandTestCase
* @group connected
* @requiresRedisVersion >= 2.0.0
*/
public function testReturnsTheLenghtOfTheStringAfterAppend(): void
public function testReturnsTheLengthOfTheStringAfterAppend(): void
{
$redis = $this->getClient();
+1 -1
View File
@@ -78,7 +78,7 @@ class LINSERT_Test extends PredisCommandTestCase
/**
* @group connected
*/
public function testReturnsLengthOfListAfterInser(): void
public function testReturnsLengthOfListAfterInsert(): void
{
$redis = $this->getClient();
+1 -1
View File
@@ -148,7 +148,7 @@ class MIGRATE_Test extends PredisCommandTestCase
* @requiresRedisVersion >= 2.6.0
* @group slow
*/
public function testReturnsErrorOnUnreacheableDestination(): void
public function testReturnsErrorOnUnreachableDestination(): void
{
$this->expectException('Predis\Response\ServerException');
$this->expectExceptionMessage('IOERR');
@@ -1123,7 +1123,7 @@ class RedisClusterTest extends PredisTestCase
/**
* @group disconnected
*/
public function testParseIPv6AddresseAndPortPairInRedirectionPayload(): void
public function testParseIPv6AddressAndPortPairInRedirectionPayload(): void
{
$movedResponse = new Response\Error('MOVED 1970 2001:db8:0:f101::2:6379');
@@ -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));
}
/**