mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
added some missing tests
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
--TEST--
|
||||
"set" tag
|
||||
--TEMPLATE--
|
||||
{% set foo = "foo" %}
|
||||
|
||||
{% set bar %}
|
||||
{%- set foo = "bar" -%}
|
||||
bar
|
||||
{% endset %}
|
||||
|
||||
{{ foo }}
|
||||
{{ bar }}
|
||||
--DATA--
|
||||
return []
|
||||
--EXPECT--
|
||||
bar
|
||||
bar
|
||||
Reference in New Issue
Block a user