PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/if/expression.test

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

Contents

Class file image Download
--TEST-- "if" takes an expression as a test --TEMPLATE-- {% if a < 2 %} A1 {% elseif a > 10 %} A2 {% else %} A3 {% endif %} --DATA-- return array('a' => 1) --EXPECT-- A1 --DATA-- return array('a' => 12) --EXPECT-- A2 --DATA-- return array('a' => 7) --EXPECT-- A3