normalizeVariadic() public static méthode

Normalizes the arguments array passed to a variadic Redis command.
public static normalizeVariadic ( array $arguments ) : array
$arguments array Arguments for a command.
Résultat array
 /**
  * @group disconnected
  */
 public function testNormalizeVariadic()
 {
     $arguments = array('key', 'value1', 'value2', 'value3');
     $this->assertSame($arguments, Command::normalizeVariadic($arguments));
     $this->assertSame($arguments, Command::normalizeVariadic(array('key', array('value1', 'value2', 'value3'))));
     $arguments = array(new \stdClass());
     $this->assertSame($arguments, Command::normalizeVariadic($arguments));
 }