Path : /proc/self/root/usr/local/cwpsrv/var/services/twig/test/Twig/Tests/Fixtures/tags/macro/ |
Current File : //proc/self/root/usr/local/cwpsrv/var/services/twig/test/Twig/Tests/Fixtures/tags/macro/global.test |
--TEST-- "macro" tag --TEMPLATE-- {% from 'forms.twig' import foo %} {{ foo('foo') }} {{ foo() }} --TEMPLATE(forms.twig)-- {% macro foo(name) %}{{ name|default('foo') }}{{ global }}{% endmacro %} --DATA-- return array() --EXPECT-- fooglobal fooglobal