More random fixes after inspection.

This commit is contained in:
Daniele Alessandri
2014-07-27 22:28:21 +02:00
parent 4e1186f845
commit dbfc1a74ba
38 changed files with 74 additions and 73 deletions
@@ -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);
}