foo
', 0))); $node = new Twig_Node_Spaceless($body, 0); $this->assertEquals($body, $node->getNode('body')); } /** * @covers Twig_Node_Spaceless::compile * @dataProvider getTests */ public function testCompile($node, $source, $environment = null) { parent::testCompile($node, $source, $environment); } public function getTests() { $body = new Twig_Node(array(new Twig_Node_Text('
foo
', 0))); $node = new Twig_Node_Spaceless($body, 0); return array( array($node, <<
foo
"; echo trim(preg_replace('/>\s+<', ob_get_clean())); EOF ), ); } }