@@ -208,15 +208,15 @@ public function testSignatureWithNoPrefix()
208208 public function testSignatureWithComments ()
209209 {
210210 $ doc = DOMDocumentFactory::fromString (
211- '<ApplicationRequest xmlns:pfx="http://example.org/xmldata/" Id="SomeID"> ' .
212- '<!-- this is a comment --> ' .
213- '<CustomerId>12345678</CustomerId> ' .
214- '<Command>GetUserInfo</Command> ' .
215- '<Timestamp>1317032524</Timestamp> ' .
216- '<Status>ALL</Status> ' .
217- '<Environment>DEVELOPMENT</Environment> ' .
218- '<SoftwareId>ExampleApp 0.1\b</SoftwareId> ' .
219- '<FileType>ABCDEFG</FileType> ' .
211+ '<ApplicationRequest xmlns:pfx="http://example.org/xmldata/" Id="SomeID"> ' .
212+ '<!-- this is a comment --> ' .
213+ '<CustomerId>12345678</CustomerId> ' .
214+ '<Command>GetUserInfo</Command> ' .
215+ '<Timestamp>1317032524</Timestamp> ' .
216+ '<Status>ALL</Status> ' .
217+ '<Environment>DEVELOPMENT</Environment> ' .
218+ '<SoftwareId>ExampleApp 0.1\b</SoftwareId> ' .
219+ '<FileType>ABCDEFG</FileType> ' .
220220 '</ApplicationRequest> '
221221 );
222222 $ signature = new Signature ($ doc ->documentElement );
@@ -282,15 +282,15 @@ public function testAutomaticallyAddingReferencesWithComments()
282282 public function testSignatureWithRegeneratedId ()
283283 {
284284 $ doc = DOMDocumentFactory::fromString (
285- '<ApplicationRequest xmlns="http://example.org/xmldata/" ID="SomeID"> ' .
286- '<!-- this is a comment --> ' .
287- '<CustomerId>12345678</CustomerId> ' .
288- '<Command>GetUserInfo</Command> ' .
289- '<Timestamp>1317032524</Timestamp> ' .
290- '<Status>ALL</Status> ' .
291- '<Environment>DEVELOPMENT</Environment> ' .
292- '<SoftwareId>ExampleApp 0.1\b</SoftwareId> ' .
293- '<FileType>ABCDEFG</FileType> ' .
285+ '<ApplicationRequest xmlns="http://example.org/xmldata/" ID="SomeID"> ' .
286+ '<!-- this is a comment --> ' .
287+ '<CustomerId>12345678</CustomerId> ' .
288+ '<Command>GetUserInfo</Command> ' .
289+ '<Timestamp>1317032524</Timestamp> ' .
290+ '<Status>ALL</Status> ' .
291+ '<Environment>DEVELOPMENT</Environment> ' .
292+ '<SoftwareId>ExampleApp 0.1\b</SoftwareId> ' .
293+ '<FileType>ABCDEFG</FileType> ' .
294294 '</ApplicationRequest> '
295295 );
296296 $ signature = new Signature ($ doc ->documentElement );
@@ -450,14 +450,14 @@ public function testReferenceWithCommentsRemovedWhenObjectID()
450450 public function testEnvelopingSignature ()
451451 {
452452 $ doc = DOMDocumentFactory::fromString (
453- '<root Id="SomeID"> ' .
454- '<!-- This comment should not be included in the digest. --> ' .
455- '<!-- withcomment-id-uri ds:signature tag --> ' .
456- '<!-- Neither should this comment be included. --> ' .
457- '<childnode> ' .
458- 'sometext ' .
459- '<!-- Nor this comment. --> ' .
460- '</childnode> ' .
453+ '<root Id="SomeID"> ' .
454+ '<!-- This comment should not be included in the digest. --> ' .
455+ '<!-- withcomment-id-uri ds:signature tag --> ' .
456+ '<!-- Neither should this comment be included. --> ' .
457+ '<childnode> ' .
458+ 'sometext ' .
459+ '<!-- Nor this comment. --> ' .
460+ '</childnode> ' .
461461 '</root> '
462462 );
463463 $ signature = new Signature ($ doc ->documentElement );
@@ -615,8 +615,8 @@ public function testVerifiedNode()
615615 public function testForCommentsInContents ()
616616 {
617617 $ doc = DOMDocumentFactory::fromString (
618- '<ApplicationRequest xmlns="http://example.org/xmldata/" Id="SomeID"> ' .
619- '<CustomerId>12345678<!--0-->9</CustomerId> ' .
618+ '<ApplicationRequest xmlns="http://example.org/xmldata/" Id="SomeID"> ' .
619+ '<CustomerId>12345678<!--0-->9</CustomerId> ' .
620620 '</ApplicationRequest> '
621621 );
622622 $ signature = new Signature ($ doc ->documentElement );
0 commit comments