You are here

public function Twig_Tests_Node_Expression_CallTest::testResolveArgumentsOnlyNecessaryArgumentsForCustomFunction 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::testResolveArgumentsOnlyNecessaryArgumentsForCustomFunction()

File

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

Class

Twig_Tests_Node_Expression_CallTest

Code

public function testResolveArgumentsOnlyNecessaryArgumentsForCustomFunction() {
  $node = new Twig_Tests_Node_Expression_Call(array(), array(
    'type' => 'function',
    'name' => 'custom_function',
  ));
  $this
    ->assertEquals(array(
    'arg1',
  ), $node
    ->getArguments(array(
    $this,
    'customFunction',
  ), array(
    'arg1' => 'arg1',
  )));
}