PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/method_call.test

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

Contents

Class file image Download
--TEST-- Twig supports method calls --TEMPLATE-- {{ items.foo.foo }} {{ items.foo.getFoo() }} {{ items.foo.bar }} {{ items.foo['bar'] }} {{ items.foo.bar('a', 43) }} {{ items.foo.bar(foo) }} {{ items.foo.self.foo() }} {{ items.foo.is }} {{ items.foo.in }} {{ items.foo.not }} --DATA-- return array('foo' => 'bar', 'items' => array('foo' => new TwigTestFoo(), 'bar' => 'foo')) --CONFIG-- return array('strict_variables' => false) --EXPECT-- foo foo bar bar_a-43 bar_bar foo is in not