]>
Commit | Line | Data |
---|---|---|
4f5b44bd NL |
1 | --TEST-- |
2 | Twig supports method calls | |
3 | --TEMPLATE-- | |
4 | {{ items.foo.foo }} | |
5 | {{ items.foo.getFoo() }} | |
6 | {{ items.foo.bar }} | |
7 | {{ items.foo['bar'] }} | |
8 | {{ items.foo.bar('a', 43) }} | |
9 | {{ items.foo.bar(foo) }} | |
10 | {{ items.foo.self.foo() }} | |
11 | {{ items.foo.is }} | |
12 | {{ items.foo.in }} | |
13 | {{ items.foo.not }} | |
14 | --DATA-- | |
15 | return array('foo' => 'bar', 'items' => array('foo' => new TwigTestFoo(), 'bar' => 'foo')) | |
16 | --CONFIG-- | |
17 | return array('strict_variables' => false) | |
18 | --EXPECT-- | |
19 | foo | |
20 | foo | |
21 | bar | |
22 | ||
23 | bar_a-43 | |
24 | bar_bar | |
25 | foo | |
26 | is | |
27 | in | |
28 | not |