diff --git a/tests/Utils/ExtendableAttributesElement.php b/tests/Utils/ExtendableAttributesElement.php index 35eb48e..ff022e8 100644 --- a/tests/Utils/ExtendableAttributesElement.php +++ b/tests/Utils/ExtendableAttributesElement.php @@ -93,11 +93,7 @@ public function toXML(DOMElement $parent = null): DOMElement $e = $this->instantiateParentElement($parent); foreach ($this->getAttributesNS() as $attr) { - $e->setAttributeNS( - $attr->getNamespaceURI(), - $attr->getNamespacePrefix() . ':' . $attr->getAttrName(), - $attr->getAttrValue(), - ); + $attr->toXML($e); } return $e;