mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 04:16:28 +00:00
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:
+12
@@ -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--
|
||||
<br />
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user