--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
info at phpclasses dot org