Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / tags / with / with_only.test
1 --TEST--
2 "with" tag with expression and only
3 --TEMPLATE--
4 {% with {foo: 'foo', bar: 'BAZ'} only %}
5     {{ foo }}{{ bar }}{{ baz }}
6 {% endwith %}
7 --DATA--
8 return array('foo' => 'baz', 'baz' => 'baz')
9 --EXCEPTION--
10 Twig_Error_Runtime: Variable "baz" does not exist in "index.twig" at line 3.