added some more tests for the filename autoescape strategy

This commit is contained in:
Fabien Potencier
2015-01-14 07:56:45 +01:00
parent 4481bf5f38
commit 01ab6f317b
2 changed files with 29 additions and 7 deletions
@@ -0,0 +1,18 @@
--TEST--
"filename" autoescape strategy
--TEMPLATE--
{{ br -}}
{{ include('index.html.twig') -}}
{{ include('index.txt.twig') -}}
--TEMPLATE(index.html.twig)--
{{ br -}}
--TEMPLATE(index.txt.twig)--
{{ br -}}
--DATA--
return array('br' => '<br />')
--CONFIG--
return array('autoescape' => 'filename')
--EXPECT--
&lt;br /&gt;
&lt;br /&gt;
<br />