unittests: NOBUG further fix to HTML expectations - prevent side-effects.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user