You are here

public function Twig_Tests_ExpressionParserTest::getMacroDefinitionDoesNotSupportNonConstantDefaultValues in Zircon Profile 8.0

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

File

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

Class

Twig_Tests_ExpressionParserTest

Code

public function getMacroDefinitionDoesNotSupportNonConstantDefaultValues() {
  return array(
    array(
      '{% macro foo(name = "a #{foo} a") %}{% endmacro %}',
    ),
    array(
      '{% macro foo(name = [["b", "a #{foo} a"]]) %}{% endmacro %}',
    ),
  );
}