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