added missing tests
authorFabien Potencier <fabien.potencier@gmail.com>
Sat, 11 Oct 2014 22:29:52 +0000 (00:29 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Sat, 11 Oct 2014 22:29:52 +0000 (00:29 +0200)
test/Twig/Tests/Fixtures/tags/macro/super_globals.test [new file with mode: 0644]

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 (file)
index 0000000..5679462
--- /dev/null
@@ -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