You are here

public function Twig_Tests_ExpressionParserTest::testMacroCallDoesNotSupportNamedArguments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/ExpressionParserTest.php \Twig_Tests_ExpressionParserTest::testMacroCallDoesNotSupportNamedArguments()

@expectedException Twig_Error_Syntax

File

vendor/twig/twig/test/Twig/Tests/ExpressionParserTest.php, line 232

Class

Twig_Tests_ExpressionParserTest

Code

public function testMacroCallDoesNotSupportNamedArguments() {
  $env = new Twig_Environment($this
    ->getMock('Twig_LoaderInterface'), array(
    'cache' => false,
    'autoescape' => false,
  ));
  $parser = new Twig_Parser($env);
  $parser
    ->parse($env
    ->tokenize('{% from _self import foo %}{% macro foo() %}{% endmacro %}{{ foo(name="Foo") }}', 'index'));
}