shuffle() public method

See also: Bolt\Twig\Handler\ArrayHandler::shuffle()
public shuffle ( $array )
Example #1
0
 public function testShuffle()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['array'] = $this->getMockHandler('ArrayHandler', 'shuffle');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->shuffle(null);
 }