Move command "COMMAND" to the server profile for Redis 2.8.

This command has been backported from the "unstable" branch of Redis
to the "2.8" one, and it is available since 2.8.13.
This commit is contained in:
Daniele Alessandri
2014-07-28 20:30:09 +02:00
parent df653a7c00
commit dedc1ba0a9
4 changed files with 10 additions and 2 deletions
+3
View File
@@ -254,6 +254,9 @@ class RedisVersion280 extends RedisProfile
'PFADD' => 'Predis\Command\HyperLogLogAdd',
'PFCOUNT' => 'Predis\Command\HyperLogLogCount',
'PFMERGE' => 'Predis\Command\HyperLogLogMerge',
/* remote server control commands */
'COMMAND' => 'Predis\Command\ServerCommand',
);
}
}
+3 -2
View File
@@ -255,10 +255,11 @@ class RedisVersion300 extends RedisProfile
'PFCOUNT' => 'Predis\Command\HyperLogLogCount',
'PFMERGE' => 'Predis\Command\HyperLogLogMerge',
/* ---------------- Redis 3.0 ---------------- */
/* remote server control commands */
'COMMAND' => 'Predis\Command\ServerCommand',
/* ---------------- Redis 3.0 ---------------- */
);
}
}
@@ -84,6 +84,7 @@ class ServerCommandTest extends PredisCommandTestCase
/**
* @group connected
* @requiresRedisVersion >= 2.8.13
*/
public function testReturnsEmptyCommandInfoOnNonExistingCommand()
{
@@ -95,6 +96,7 @@ class ServerCommandTest extends PredisCommandTestCase
/**
* @group connected
* @requiresRedisVersion >= 2.8.13
*/
public function testReturnsCommandInfoOnExistingCommand()
{
@@ -112,6 +114,7 @@ class ServerCommandTest extends PredisCommandTestCase
/**
* @group connected
* @requiresRedisVersion >= 2.8.13
*/
public function testReturnsListOfCommandInfoWithNoArguments()
{
@@ -185,6 +185,7 @@ class RedisVersion280Test extends PredisProfileTestCase
144 => 'PFADD',
145 => 'PFCOUNT',
146 => 'PFMERGE',
147 => 'COMMAND',
);
}
}