@@ -149,17 +149,13 @@ public function testMarshallingNull(): void
149149 /**
150150 * Verifies that supplying an empty string as attribute value will
151151 * generate a tag with no content (instead of e.g. an empty tag).
152- *
153152 */
154153 public function testEmptyStringAttribute (): void
155154 {
156155 $ av = new AttributeValue ('' );
157156 $ xmlRepresentation = clone self ::$ xmlRepresentation ;
158157 $ xmlRepresentation ->documentElement ->textContent = '' ;
159- // $this->assertEqualXMLStructure(
160- // $this->xmlRepresentation->documentElement,
161- // $av->toXML(),
162- // );
158+
163159 $ this ->assertEquals ('' , $ av ->getValue ());
164160 $ this ->assertEquals ('xs:string ' , $ av ->getXsiType ());
165161 }
@@ -203,22 +199,22 @@ public function testSerializeEncryptedID(): void
203199 {
204200 $ document = DOMDocumentFactory::fromString (
205201 <<<XML
206- <saml:AttributeValue xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
202+ <saml:AttributeValue xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" >
207203 <saml:EncryptedID>
208- <xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="_4ea05f00adb06c642e0cb52f063e2570-1" Type="http://www.w3.org/2001/04/xmlenc#Element">
204+ <xenc:EncryptedData Id="_4ea05f00adb06c642e0cb52f063e2570-1" Type="http://www.w3.org/2001/04/xmlenc#Element">
209205 <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
210- <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#" >
206+ <ds:KeyInfo>
211207 <ds:RetrievalMethod URI="#_dc9043a7cbec55c6fcc61f1cf64cf868-1" Type="http://www.w3.org/2001/04/xmlenc#EncryptedKey"/>
212208 </ds:KeyInfo>
213209 <xenc:CipherData>
214210 <xenc:CipherValue>vErnRkA0oSmtQGamjZGa9RFN25SUx1UVLsLAOtopt7pyywTD7wu9pyocfD4HqduXCsvaiZpJykz11utZdvtJ0sOdm9oE+lAtNTUnKzGSNoSopGCzwNu5pqwhIEvWEWeilmJayAC2elpRYOnUs/rePxibz0Wbqa7BItLt6ZkKTtMkv0U0PpgGenF1pWzsahRtw6Y5tFq7xFQkG/z0Lz5rJ+IxExYXgB3LN6FBmVcB1ioahk2ovOwbLQ+lNAdqUMhpZx6fgdL2v7g4OYPK0rDgSALU3gU3dvU4hC/Kk9N5Rkw=</xenc:CipherValue>
215211 </xenc:CipherData>
216212 </xenc:EncryptedData>
217- <xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="_dc9043a7cbec55c6fcc61f1cf64cf868-1" Recipient="urn:nl-eid-gdi:1.0:DV:00000009900006840000:entities:9780">
213+ <xenc:EncryptedKey Id="_dc9043a7cbec55c6fcc61f1cf64cf868-1" Recipient="urn:nl-eid-gdi:1.0:DV:00000009900006840000:entities:9780">
218214 <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
219- <ds:DigestMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
215+ <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
220216 </xenc:EncryptionMethod>
221- <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#" >
217+ <ds:KeyInfo>
222218 <ds:KeyName>_b420654655d491b49555c698f80efb7bda3ac6ef</ds:KeyName>
223219 </ds:KeyInfo>
224220 <xenc:CipherData>
0 commit comments