Skip to content

Commit 8190977

Browse files
committed
Optimize test-class
1 parent 4f1257d commit 8190977

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/Utils/ExtendableAttributesElement.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ public function toXML(DOMElement $parent = null): DOMElement
9393
$e = $this->instantiateParentElement($parent);
9494

9595
foreach ($this->getAttributesNS() as $attr) {
96-
$e->setAttributeNS(
97-
$attr->getNamespaceURI(),
98-
$attr->getNamespacePrefix() . ':' . $attr->getAttrName(),
99-
$attr->getAttrValue(),
100-
);
96+
$attr->toXML($e);
10197
}
10298

10399
return $e;

0 commit comments

Comments
 (0)