You are here

public function Twig_Tests_Node_ImportTest::testConstructor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/Node/ImportTest.php \Twig_Tests_Node_ImportTest::testConstructor()

File

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

Class

Twig_Tests_Node_ImportTest

Code

public function testConstructor() {
  $macro = new Twig_Node_Expression_Constant('foo.twig', 1);
  $var = new Twig_Node_Expression_AssignName('macro', 1);
  $node = new Twig_Node_Import($macro, $var, 1);
  $this
    ->assertEquals($macro, $node
    ->getNode('expr'));
  $this
    ->assertEquals($var, $node
    ->getNode('var'));
}