Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / expressions / array_call.test
1 --TEST--
2 Twig supports method calls
3 --TEMPLATE--
4 {{ items.foo }}
5 {{ items['foo'] }}
6 {{ items[foo] }}
7 {{ items[items[foo]] }}
8 --DATA--
9 return array('foo' => 'bar', 'items' => array('foo' => 'bar', 'bar' => 'foo'))
10 --EXPECT--
11 bar
12 bar
13 foo
14 bar