You are here

public function Twig_Tests_Node_BlockReferenceTest::testConstructor in Zircon Profile 8.0

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

File

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

Class

Twig_Tests_Node_BlockReferenceTest

Code

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