You are here

public function Twig_Tests_Node_Expression_CallTest::testGetArguments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/Node/Expression/CallTest.php \Twig_Tests_Node_Expression_CallTest::testGetArguments()

File

vendor/twig/twig/test/Twig/Tests/Node/Expression/CallTest.php, line 14

Class

Twig_Tests_Node_Expression_CallTest

Code

public function testGetArguments() {
  $node = new Twig_Tests_Node_Expression_Call(array(), array(
    'type' => 'function',
    'name' => 'date',
  ));
  $this
    ->assertEquals(array(
    'U',
    null,
  ), $node
    ->getArguments('date', array(
    'format' => 'U',
    'timestamp' => null,
  )));
}