public function testXml() { $element = new Element('span', 'hello'); $prolog = '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; $this->assertEquals($prolog . '<span>hello</span>', $element->xml()); }