diff --git a/src/XML/xenc/Q.php b/src/XML/xenc/Q.php new file mode 100644 index 00000000..379ecb54 --- /dev/null +++ b/src/XML/xenc/Q.php @@ -0,0 +1,26 @@ +setContent($content); + } +} diff --git a/tests/XML/xenc/QTest.php b/tests/XML/xenc/QTest.php new file mode 100644 index 00000000..46ddcb12 --- /dev/null +++ b/tests/XML/xenc/QTest.php @@ -0,0 +1,65 @@ +assertEquals( + XMLDumper::dumpDOMDocumentXMLWithBase64Content(self::$xmlRepresentation), + strval($q), + ); + } + + + /** + */ + public function testMarshallingNotBase64(): void + { + $this->expectException(AssertionFailedException::class); + new Q('/CTj3d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI='); + } +} diff --git a/tests/resources/xml/xenc_Q.xml b/tests/resources/xml/xenc_Q.xml new file mode 100644 index 00000000..421da4f6 --- /dev/null +++ b/tests/resources/xml/xenc_Q.xml @@ -0,0 +1 @@ +/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI=