Merge branch 'main' into fix-type-main

This commit is contained in:
Till Krüss
2023-05-09 10:52:19 -07:00
committed by GitHub
263 changed files with 3699 additions and 1265 deletions
@@ -12,6 +12,8 @@
namespace Predis\Command\Redis;
use Predis\Command\PrefixableCommand;
/**
* @group commands
* @group realm-zset
@@ -56,6 +58,23 @@ class ZSCORE_Test extends PredisCommandTestCase
$this->assertSame(1, $this->getCommand()->parseResponse(1));
}
/**
* @group disconnected
*/
public function testPrefixKeys(): void
{
/** @var PrefixableCommand $command */
$command = $this->getCommand();
$actualArguments = ['arg1', 'arg2', 'arg3', 'arg4'];
$prefix = 'prefix:';
$expectedArguments = ['prefix:arg1', 'arg2', 'arg3', 'arg4'];
$command->setArguments($actualArguments);
$command->prefixKeys($prefix);
$this->assertSame($expectedArguments, $command->getArguments());
}
/**
* @group connected
*/