PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tests/in_with_objects.test

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