public function randomQuote()
{
return $this->handlers['admin']->randomQuote();
}
public function testRandomQuote() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['admin'] = $this->getMockHandler('AdminHandler', 'randomQuote'); $twig = new TwigExtension($app, $handlers, true); $twig->randomQuote(); }