mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-28 08:05:03 +00:00
moved test under tests/
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
--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.
|
||||
Reference in New Issue
Block a user