Skip to content

Commit df61863

Browse files
committed
Use constant
1 parent 8ab3e55 commit df61863

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/XPath/XPathTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use PHPUnit\Framework\Attributes\CoversClass;
1010
use PHPUnit\Framework\Attributes\DataProvider;
1111
use PHPUnit\Framework\TestCase;
12+
use SimpleSAML\XML\Constants as C;
1213
use SimpleSAML\XML\DOMDocumentFactory;
1314
use 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');

0 commit comments

Comments
 (0)