added some tests

git-svn-id: http://svn.twig-project.org/trunk@191 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
fabien
2009-12-15 14:37:47 +00:00
parent e2c7b2fadd
commit 80871d95bc
+12
View File
@@ -0,0 +1,12 @@
--TEST--
"include" tag accept variables
--TEMPLATE--
{% include "foo.twig" with ['foo': 'bar'] %}
{% include "foo.twig" with vars %}
--TEMPLATE(foo.twig)--
{{ foo }}
--DATA--
return array('vars' => array('foo' => 'bar'))
--EXPECT--
bar
bar