public function Twig_Tests_Node_Expression_CallTest::testResolveArgumentsOnlyNecessaryArgumentsForCustomFunction in Zircon Profile 8
Same name and namespace in other branches
- 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
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',
)));
}