/** * @expectedException InvalidArgumentException */ public function testInvalidXML() { $root = new SimpleDOM('<root><child /></root>'); $root->insertXML('<bad><xml>'); }