PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/tests/in.test

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

Contents

Class file image Download
--TEST-- Twig supports the in operator --TEMPLATE-- {% if bar in foo %} TRUE {% endif %} {% if not (bar in foo) %} {% else %} TRUE {% endif %} {% if bar not in foo %} {% else %} TRUE {% endif %} {% if 'a' in bar %} TRUE {% endif %} {% if 'c' not in bar %} TRUE {% endif %} {% if '' not in bar %} TRUE {% endif %} {% if '' in '' %} TRUE {% endif %} {% if '0' not in '' %} TRUE {% endif %} {% if 'a' not in '0' %} TRUE {% endif %} {% if '0' in '0' %} TRUE {% endif %} --DATA-- return array('bar' => 'bar', 'foo' => array('bar' => 'bar')) --EXPECT-- TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE