diff options
Diffstat (limited to 'vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/special_chars.test')
-rw-r--r-- | vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/special_chars.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/special_chars.test b/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/special_chars.test new file mode 100644 index 00000000..37217707 --- /dev/null +++ b/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/special_chars.test | |||
@@ -0,0 +1,14 @@ | |||
1 | --TEST-- | ||
2 | "§" as a macro name | ||
3 | --TEMPLATE-- | ||
4 | {% import _self as macros %} | ||
5 | |||
6 | {{ macros.§('foo') }} | ||
7 | |||
8 | {% macro §(foo) %} | ||
9 | §{{ foo }}§ | ||
10 | {% endmacro %} | ||
11 | --DATA-- | ||
12 | return array() | ||
13 | --EXPECT-- | ||
14 | §foo§ | ||