From 8190977c626ed49412090819e3f796f96da3d02f Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Wed, 24 Jan 2024 18:23:32 +0100 Subject: [PATCH] Optimize test-class --- tests/Utils/ExtendableAttributesElement.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;