mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 04:16:28 +00:00
added a test to verify that the merge filter actually behaves like said in the documentation (closes #789)
This commit is contained in:
@@ -5,10 +5,12 @@
|
||||
{{ items|merge({'bar': 'foo'})|keys|join }}
|
||||
{{ {'bar': 'foo'}|merge(items)|join }}
|
||||
{{ {'bar': 'foo'}|merge(items)|keys|join }}
|
||||
{{ numerics|merge([4, 5, 6])|join }}
|
||||
--DATA--
|
||||
return array('items' => array('foo' => 'bar'))
|
||||
return array('items' => array('foo' => 'bar'), 'numerics' => array(1, 2, 3))
|
||||
--EXPECT--
|
||||
barfoo
|
||||
foobar
|
||||
foobar
|
||||
barfoo
|
||||
123456
|
||||
|
||||
Reference in New Issue
Block a user