mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Fix typos (#1579)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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]";
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ class LINSERT_Test extends PredisCommandTestCase
|
||||
/**
|
||||
* @group connected
|
||||
*/
|
||||
public function testReturnsLengthOfListAfterInser(): void
|
||||
public function testReturnsLengthOfListAfterInsert(): void
|
||||
{
|
||||
$redis = $this->getClient();
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user