From c476a6b1fc4d5f79b2bd53c16420465592f4bf38 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 12 Oct 2014 00:29:52 +0200 Subject: [PATCH] added missing tests --- .../Tests/Fixtures/tags/macro/super_globals.test | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 test/Twig/Tests/Fixtures/tags/macro/super_globals.test diff --git a/test/Twig/Tests/Fixtures/tags/macro/super_globals.test b/test/Twig/Tests/Fixtures/tags/macro/super_globals.test new file mode 100644 index 0000000..5679462 --- /dev/null +++ b/test/Twig/Tests/Fixtures/tags/macro/super_globals.test @@ -0,0 +1,14 @@ +--TEST-- +Super globals as macro arguments +--TEMPLATE-- +{% import _self as macros %} + +{{ macros.foo('foo') }} + +{% macro foo(GET) %} + {{ GET }} +{% endmacro %} +--DATA-- +return array() +--EXPECT-- +foo -- 1.7.2.5