public function Twig_Tests_Node_Expression_CallTest::testGetArgumentsForStaticMethod 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::testGetArgumentsForStaticMethod()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Node/ Expression/ CallTest.php, line 81
Class
Code
public function testGetArgumentsForStaticMethod() {
$node = new Twig_Tests_Node_Expression_Call(array(), array(
'type' => 'function',
'name' => 'custom_static_function',
));
$this
->assertEquals(array(
'arg1',
), $node
->getArguments(__CLASS__ . '::customStaticFunction', array(
'arg1' => 'arg1',
)));
}