public function Twig_Tests_Node_Expression_FunctionTest::testConstructor

@covers Twig_Node_Expression_Function::__construct

File

drupal/core/vendor/twig/twig/test/Twig/Tests/Node/Expression/FunctionTest.php, line 17

Class

Twig_Tests_Node_Expression_FunctionTest

Code

public function testConstructor() {
  $name = 'function';
  $args = new Twig_Node();
  $node = new Twig_Node_Expression_Function($name, $args, 1);
  $this
    ->assertEquals($name, $node
    ->getAttribute('name'));
  $this
    ->assertEquals($args, $node
    ->getNode('arguments'));
}