Yaffs site version 1.1
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / autoescape / name.test
diff --git a/vendor/twig/twig/test/Twig/Tests/Fixtures/autoescape/name.test b/vendor/twig/twig/test/Twig/Tests/Fixtures/autoescape/name.test
new file mode 100644 (file)
index 0000000..04299be
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+"name" autoescape strategy
+--TEMPLATE--
+{{ br -}}
+{{ include('index.js.twig') -}}
+{{ include('index.html.twig') -}}
+{{ include('index.txt.twig') -}}
+--TEMPLATE(index.js.twig)--
+{{ br -}}
+--TEMPLATE(index.html.twig)--
+{{ br -}}
+--TEMPLATE(index.txt.twig)--
+{{ br -}}
+--DATA--
+return array('br' => '<br />')
+--CONFIG--
+return array('autoescape' => 'name')
+--EXPECT--
+&lt;br /&gt;
+\x3Cbr\x20\x2F\x3E
+&lt;br /&gt;
+<br />