function _shuffle($list)
{
    return Underscore::shuffle($list);
}
Esempio n. 2
0
 /**
  * @dataProvider peopleDataProvider
  * @tags collections
  */
 public function testShuffle($people, $type, $meta)
 {
     $values = range(1, 9999);
     // it shuffles a list (and always returns an array)
     $this->array(_::shuffle($values))->isNotEqualTo($values)->hasSize(9999);
     // it can shuffle anything
     $this->array(_::shuffle($people))->keys->containsValues($meta['keys'])->isNotEqualTo($meta['keys']);
 }