shuffle() public method

Randomizes entries an array with the option to preserve the existing keys. When this option is set to FALSE, all keys will be replaced
public shuffle ( array $array, boolean $preserveKeys = true ) : array
$array array
$preserveKeys boolean Wether to preserve the keys when shuffling the array
return array The shuffled array
 /**
  * @test
  * @dataProvider shuffleExamples
  */
 public function shuffleWorks($array)
 {
     $helper = new ArrayHelper();
     $shuffledArray = $helper->shuffle($array);
     $this->assertEquals($array, $shuffledArray);
 }