public function testConstructor() { $body = new Twig_Node_Text('foo', 1); $node = new Twig_Node_Block('foo', $body, 1); $this->assertEquals($body, $node->getNode('body')); $this->assertEquals('foo', $node->getAttribute('name')); }