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