assertEquals($expr, $node->getNode('expr')); } public function getTests() { $tests = array(); $tests[] = array(new Twig_Node_Print(new Twig_Node_Expression_Constant('foo', 1), 1), "// line 1\necho \"foo\";"); return $tests; } }