If $actual is already a DOMDocument, it is returned with
no changes. Otherwise, $actual is loaded into a new DOMDocument
as either HTML or XML, depending on the value of $isHtml.
Note: prior to PHPUnit 3.3.0, this method loaded a file and
not a string as it currently does. To load a file into a
DOMDocument, use loadFile() instead.