public function shuffle($array) { return $this->handlers['array']->shuffle($array); }
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); }