diff options
Diffstat (limited to 'vendor/twig/twig/test/Twig/Tests/Fixtures/macros/nested_calls.test')
-rw-r--r-- | vendor/twig/twig/test/Twig/Tests/Fixtures/macros/nested_calls.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/twig/twig/test/Twig/Tests/Fixtures/macros/nested_calls.test b/vendor/twig/twig/test/Twig/Tests/Fixtures/macros/nested_calls.test new file mode 100644 index 00000000..cd254281 --- /dev/null +++ b/vendor/twig/twig/test/Twig/Tests/Fixtures/macros/nested_calls.test | |||
@@ -0,0 +1,18 @@ | |||
1 | --TEST-- | ||
2 | macro | ||
3 | --TEMPLATE-- | ||
4 | {% import _self as macros %} | ||
5 | |||
6 | {% macro foo(data) %} | ||
7 | {{ data }} | ||
8 | {% endmacro %} | ||
9 | |||
10 | {% macro bar() %} | ||
11 | <br /> | ||
12 | {% endmacro %} | ||
13 | |||
14 | {{ macros.foo(macros.bar()) }} | ||
15 | --DATA-- | ||
16 | return array(); | ||
17 | --EXPECT-- | ||
18 | <br /> | ||