You are here

public function Twig_Tests_Node_Expression_ParentTest::testConstructor in Zircon Profile 8.0

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

File

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

Class

Twig_Tests_Node_Expression_ParentTest

Code

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