mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
unittests: NOBUG further fix to HTML expectations - prevent side-effects.
This commit is contained in:
parent
46aa52bf85
commit
3d39d775fa
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user