Files
Twig/tests/Fixtures/exceptions/multiline_array_with_undefined_variable.test
T
2019-06-30 14:56:12 +02:00

19 lines
302 B
Plaintext

--TEST--
Exception for multiline array with undefined variable
--TEMPLATE--
{% set foo = {
foo: 'foo',
bar: 'bar',
foobar: foobar,
foo2: foo2,
} %}
--DATA--
return ['foobar' => 'foobar']
--EXCEPTION--
Twig\Error\RuntimeError: Variable "foo2" does not exist in "index.twig" at line 11.