/**
  * @group disconnected
  */
 public function testPrefixSkipLast()
 {
     $arguments = array('1st', '2nd', '3rd', '4th');
     $expected = array('prefix:1st', 'prefix:2nd', 'prefix:3rd', '4th');
     $command = $this->getMockForAbstractClass('Predis\\Command\\AbstractCommand');
     $command->setRawArguments($arguments);
     PrefixHelpers::skipLast($command, 'prefix:');
     $this->assertSame($expected, $command->getArguments());
 }
 /**
  * {@inheritdoc}
  */
 public function prefixKeys($prefix)
 {
     PrefixHelpers::all($this, $prefix);
 }