assertEquals('foo', $node->getAttribute('name')); } /** * @covers Twig_Node_BlockReference::compile * @dataProvider getTests */ public function testCompile($node, $source, $environment = null) { parent::testCompile($node, $source, $environment); } public function getTests() { return array( array(new Twig_Node_BlockReference('foo', 0), '$this->displayBlock(\'foo\', $context, $blocks);'), ); } }