--TEST--
Twig supports the in operator when using objects
--TEMPLATE--
{% if object in object_list %}
TRUE
{% endif %}
--DATA--
$foo = new Foo();
$foo1 = new Foo();

$foo->position = $foo1;
$foo1->position = $foo;

return array(
    'object'      => $foo,
    'object_list' => array($foo1, $foo),
);
--EXPECT--
TRUE
