You are here

public function Twig_Tests_Node_Expression_CallTest::testGetArgumentsForStaticMethod in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

Twig_Tests_Node_Expression_CallTest

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',
  )));
}