public function slug($str)
{
return $this->handlers['text']->slug($str);
}
public function testSlug() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['text'] = $this->getMockHandler('TextHandler', 'slug'); $twig = new TwigExtension($app, $handlers, true); $twig->slug(null); }