assertEquals($expr, $node->getNode('expr')); } /** * @covers Twig_Node_Do::compile * @dataProvider getTests */ public function testCompile($node, $source, $environment = null) { parent::testCompile($node, $source, $environment); } public function getTests() { $tests = array(); $expr = new Twig_Node_Expression_Constant('foo', 0); $node = new Twig_Node_Do($expr, 0); $tests[] = array($node, '"foo";'); return $tests; } }