]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/postfix.test
542c3504611258181a98651d5915e2d2e5720555
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / expressions / postfix.test
1 --TEST--
2 Twig parses postfix expressions
3 --TEMPLATE--
4 {% import _self as macros %}
5
6 {% macro foo() %}foo{% endmacro %}
7
8 {{ 'a' }}
9 {{ 'a'|upper }}
10 {{ ('a')|upper }}
11 {{ -1|upper }}
12 {{ macros.foo() }}
13 {{ (macros).foo() }}
14 --DATA--
15 return array();
16 --EXPECT--
17 a
18 A
19 A
20 -1
21 foo
22 foo