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