File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99use PHPUnit \Framework \Attributes \CoversClass ;
1010use PHPUnit \Framework \Attributes \DataProvider ;
1111use PHPUnit \Framework \TestCase ;
12+ use SimpleSAML \XML \Constants as C ;
1213use SimpleSAML \XML \DOMDocumentFactory ;
1314use SimpleSAML \XPath \XPath ;
1415
@@ -265,7 +266,7 @@ public function testXmlnsPrefixedDeclarationRegistersNamespaceViaAttributeBranch
265266 $ doc ->appendChild ($ root );
266267
267268 // Add xmlns:foo on the root (attribute-branch should detect and register)
268- $ root ->setAttributeNS (' http://www.w3.org/2000/xmlns/ ' , 'xmlns:foo ' , 'https://example.org/foo ' );
269+ $ root ->setAttributeNS (C:: NS_XMLNS , 'xmlns:foo ' , 'https://example.org/foo ' );
269270
270271 // Deep subtree that uses foo prefix but the context node itself is unprefixed
271272 $ ctx = $ doc ->createElement ('ctx ' );
You can’t perform that action at this time.
0 commit comments