public function Twig_Tests_Node_Expression_ParentTest::testConstructor

@covers Twig_Node_Expression_Parent::__construct

File

drupal/core/vendor/twig/twig/test/Twig/Tests/Node/Expression/ParentTest.php, line 19

Class

Twig_Tests_Node_Expression_ParentTest

Code

public function testConstructor() {
  $node = new Twig_Node_Expression_Parent('foo', 0);
  $this
    ->assertEquals('foo', $node
    ->getAttribute('name'));
}