PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/condition.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/condition.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/condition.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: 269 bytes
 

Contents

Class file image Download
--TEST-- "for" tag takes a condition --TEMPLATE-- {% for i in 1..5 if i is odd -%} {{ loop.index }}.{{ i }}{{ foo.bar }} {% endfor %} --DATA-- return array('foo' => array('bar' => 'X')) --CONFIG-- return array('strict_variables' => false) --EXPECT-- 1.1X 2.3X 3.5X