public function shuffle($array) { if (is_array($array)) { shuffle($array); } return $array; }
/** * @runInSeparateProcess */ public function testShuffleArray() { $app = $this->getApp(); $this->php->expects($this->once())->method('shuffle'); $handler = new ArrayHandler($app); $handler->shuffle(['shuffle', 'board']); }