PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/batch_with_keys.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/batch_with_keys.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/batch_with_keys.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 257 bytes
 

Contents

Class file image Download
--TEST-- "batch" filter preserves array keys --TEMPLATE-- {{ {'foo': 'bar', 'key': 'value'}|batch(4)|first|keys|join(',') }} {{ {'foo': 'bar', 'key': 'value'}|batch(4, 'fill')|first|keys|join(',') }} --DATA-- return array() --EXPECT-- foo,key foo,key,0,1