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', 1), <<displayBlock('foo', \$context, \$blocks); EOF ), ); } }