PHP Classes

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

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

Contents

Class file image Download
--TEST-- Twig supports the in operator when using objects --TEMPLATE-- {% if object in object_list %} TRUE {% endif %} --DATA-- $foo = new TwigTestFoo(); $foo1 = new TwigTestFoo(); $foo->position = $foo1; $foo1->position = $foo; return array( 'object' => $foo, 'object_list' => array($foo1, $foo), ); --EXPECT-- TRUE