Skip to content

Commit 1c98a2f

Browse files
committed
Raise QNameElementTrait coverage
1 parent c339200 commit 1c98a2f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/XML/QNameElementTraitTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@ public function testMarshalling(): void
5151
}
5252

5353

54+
/**
55+
*/
56+
public function testMarshallingNonNamespacedQualifiedName(): void
57+
{
58+
$qnameElement = new QNameElement('Sender', null);
59+
60+
$this->assertEquals(
61+
'<ssp:QNameElement xmlns:ssp="urn:x-simplesamlphp:namespace">Sender</ssp:QNameElement>',
62+
strval($qnameElement)
63+
);
64+
}
65+
66+
5467
/**
5568
*/
5669
public function testMarshallingInvalidQualifiedNameThrowsException(): void

0 commit comments

Comments
 (0)