added a unit test to prove that blocks are escaped

git-svn-id: http://svn.twig-project.org/trunk@193 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
fabien
2009-12-22 06:47:45 +00:00
parent 8d1648e5bd
commit 490913c103
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
--TEST--
"autoescape" tag applies escaping on embedded blocks
--TEMPLATE--
{% autoescape on %}
{% block foo %}
{{ var }}
{% endblock %}
{% endautoescape %}
--DATA--
return array('var' => '<br />')
--EXPECT--
&lt;br /&gt;
+1 -1
View File
@@ -51,7 +51,7 @@ class TestExtension extends Twig_Extension
}
}
$t = new LimeTest(59);
$t = new LimeTest(60);
$fixturesDir = realpath(dirname(__FILE__).'/../fixtures/');
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($fixturesDir), RecursiveIteratorIterator::LEAVES_ONLY) as $file)