Compare formatted output of DOMDocument in test