diff --git a/src/XML/ds/HMACOutputLength.php b/src/XML/ds/HMACOutputLength.php new file mode 100644 index 00000000..e8a6228c --- /dev/null +++ b/src/XML/ds/HMACOutputLength.php @@ -0,0 +1,26 @@ +setContent($length); + } +} diff --git a/tests/XML/ds/HMACOutputLengthTest.php b/tests/XML/ds/HMACOutputLengthTest.php new file mode 100644 index 00000000..6d3d2eba --- /dev/null +++ b/tests/XML/ds/HMACOutputLengthTest.php @@ -0,0 +1,51 @@ +assertEquals( + self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), + strval($hmacOutputLength), + ); + } +} diff --git a/tests/resources/xml/ds_HMACOutputLength.xml b/tests/resources/xml/ds_HMACOutputLength.xml new file mode 100644 index 00000000..cf8b9f3a --- /dev/null +++ b/tests/resources/xml/ds_HMACOutputLength.xml @@ -0,0 +1 @@ +1234