public function Twig_Tests_ExpressionParserTest::testUnknownFunction in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/ExpressionParserTest.php \Twig_Tests_ExpressionParserTest::testUnknownFunction()
@expectedException Twig_Error_Syntax @expectedExceptionMessage The function "cycl" does not exist. Did you mean "cycle" in "index" at line 1
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ ExpressionParserTest.php, line 301
Class
Code
public function testUnknownFunction() {
$env = new Twig_Environment($this
->getMock('Twig_LoaderInterface'), array(
'cache' => false,
'autoescape' => false,
));
$parser = new Twig_Parser($env);
$parser
->parse($env
->tokenize('{{ cycl() }}', 'index'));
}