unittests: NOBUG further fix to HTML expectations - prevent side-effects.

This commit is contained in:
tjhunt 2009-09-30 17:01:05 +00:00
parent 46aa52bf85
commit 3d39d775fa

View File

@ -199,7 +199,8 @@ abstract class XMLStructureExpectation extends SimpleExpectation {
if (!$parser->loadXML('<html>' . $html . '</html>')) {
$parser = new DOMDocument();
}
libxml_use_internal_errors($prevsetting);
libxml_clear_errors();
libxml_use_internal_errors($prevsetting);
return $parser;
}
}