public function localeDateTime($dateTime, $format = '%B %e, %Y %H:%M')
{
return $this->handlers['text']->localeDateTime($dateTime, $format);
}
public function testLocaleDateTime() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['text'] = $this->getMockHandler('TextHandler', 'localeDateTime'); $twig = new TwigExtension($app, $handlers, true); $twig->localeDateTime(null, null); }