PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/filters/merge.test

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/filters/merge.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/filters/merge.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 372 bytes
 

Contents

Class file image Download
--TEST-- "merge" filter --TEMPLATE-- {{ items|merge({'bar': 'foo'})|join }} {{ 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'), 'numerics' => array(1, 2, 3)) --EXPECT-- barfoo foobar foobar barfoo 123456