1<?php 2 3/* 4 * This file is part of Twig. 5 * 6 * (c) Fabien Potencier 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12use Twig\Node\BlockReferenceNode; 13use Twig\Test\NodeTestCase; 14 15class Twig_Tests_Node_BlockReferenceTest extends NodeTestCase 16{ 17 public function testConstructor() 18 { 19 $node = new BlockReferenceNode('foo', 1); 20 21 $this->assertEquals('foo', $node->getAttribute('name')); 22 } 23 24 public function getTests() 25 { 26 return [ 27 [new BlockReferenceNode('foo', 1), <<<EOF 28// line 1 29\$this->displayBlock('foo', \$context, \$blocks); 30EOF 31 ], 32 ]; 33 } 34} 35