PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/tags/if/expression.test

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/tags/if/expression.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/tags/if/expression.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: 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