Yaffs site version 1.1
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / tags / with / with_no_hash.test
diff --git a/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/with/with_no_hash.test b/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/with/with_no_hash.test
new file mode 100644 (file)
index 0000000..93689f4
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+"with" tag with an expression that is not a hash
+--TEMPLATE--
+{% with vars %}
+    {{ foo }}{{ bar }}
+{% endwith %}
+--DATA--
+return array('vars' => 'no-hash')
+--EXCEPTION--
+Twig_Error_Runtime: Variables passed to the "with" tag must be a hash in "index.twig" at line 2.