public function testToken() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['user'] = $this->getMockHandler('UserHandler', 'token'); $twig = new TwigExtension($app, $handlers, true); $twig->token(); }
public function testToken() { $app = $this->getApp(); $app['request'] = Request::create('/'); $handlers = $this->getTwigHandlers($app); $twig = new TwigExtension($app, $handlers, false); $this->assertNotEmpty($twig->token()); }