You are here

public function Twig_Tests_Node_Expression_FunctionTest::testConstructor in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/Node/Expression/FunctionTest.php \Twig_Tests_Node_Expression_FunctionTest::testConstructor()

File

vendor/twig/twig/test/Twig/Tests/Node/Expression/FunctionTest.php, line 14

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