Yaffs site version 1.1
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / tags / with / with_only.test
diff --git a/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/with/with_only.test b/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/with/with_only.test
new file mode 100644 (file)
index 0000000..6247617
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+"with" tag with expression and only
+--TEMPLATE--
+{% with {foo: 'foo', bar: 'BAZ'} only %}
+    {{ foo }}{{ bar }}{{ baz }}
+{% endwith %}
+--DATA--
+return array('foo' => 'baz', 'baz' => 'baz')
+--EXCEPTION--
+Twig_Error_Runtime: Variable "baz" does not exist in "index.twig" at line 3.