mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Merge branch 'main' into fix-type-main
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user