Override DOMDocument->createElement() and tests