mirror of
https://github.com/predis/predis.git
synced 2026-10-10 05:47:02 +00:00
More random fixes after inspection.
This commit is contained in:
@@ -67,16 +67,14 @@ class KeyPrefixProcessorTest extends PredisTestCase
|
||||
*/
|
||||
public function testSkipNotPrefixableCommands()
|
||||
{
|
||||
$prefix = 'prefix:';
|
||||
$unprefixed = 'key';
|
||||
$expected = "$prefix$unprefixed";
|
||||
|
||||
$command = $this->getMock('Predis\Command\CommandInterface');
|
||||
$command->expects($this->once())
|
||||
->method('getId')
|
||||
->will($this->returnValue('unknown'));
|
||||
$command->expects($this->never())
|
||||
->method('getArguments');
|
||||
|
||||
$processor = new KeyPrefixProcessor($prefix);
|
||||
$processor = new KeyPrefixProcessor('prefix');
|
||||
|
||||
$processor->process($command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user