From c1aeb1a76f85ffde4dc2dd611b0f61e4013accff Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Thu, 5 Dec 2024 21:10:45 +0100 Subject: [PATCH] Add xenc11:Specified element --- src/XML/xenc11/Specified.php | 26 ++++++++++++ tests/XML/xenc11/SpecifiedTest.php | 51 ++++++++++++++++++++++++ tests/resources/xml/xenc11_Specified.xml | 1 + 3 files changed, 78 insertions(+) create mode 100644 src/XML/xenc11/Specified.php create mode 100644 tests/XML/xenc11/SpecifiedTest.php create mode 100644 tests/resources/xml/xenc11_Specified.xml diff --git a/src/XML/xenc11/Specified.php b/src/XML/xenc11/Specified.php new file mode 100644 index 00000000..14ff6437 --- /dev/null +++ b/src/XML/xenc11/Specified.php @@ -0,0 +1,26 @@ +setContent($content); + } +} diff --git a/tests/XML/xenc11/SpecifiedTest.php b/tests/XML/xenc11/SpecifiedTest.php new file mode 100644 index 00000000..b6c58109 --- /dev/null +++ b/tests/XML/xenc11/SpecifiedTest.php @@ -0,0 +1,51 @@ +assertEquals( + self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), + strval($specified), + ); + } +} diff --git a/tests/resources/xml/xenc11_Specified.xml b/tests/resources/xml/xenc11_Specified.xml new file mode 100644 index 00000000..9c86d459 --- /dev/null +++ b/tests/resources/xml/xenc11_Specified.xml @@ -0,0 +1 @@ +GpM6