File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010use SimpleSAML \XML \DOMDocumentFactory ;
1111use SimpleSAML \XMLSecurity \XML \ds \Transform ;
1212use SimpleSAML \XMLSecurity \XML \ds \XPath ;
13+ use SimpleSAML \XMLSecurity \XML \ec \InclusiveNamespaces ;
1314
1415/**
1516 * Class \SimpleSAML\XMLSecurity\Test\XML\ds\TransformTest
@@ -49,6 +50,25 @@ public function testMarshalling(): void
4950 $ this ->xmlRepresentation ->saveXML ($ this ->xmlRepresentation ->documentElement ),
5051 strval ($ transform )
5152 );
53+
54+ $ transform = new Transform (
55+ C::C14N_EXCLUSIVE_WITHOUT_COMMENTS ,
56+ null ,
57+ new InclusiveNamespaces (["dsig " , "soap " , "#default " ])
58+ );
59+
60+
61+ $ this ->assertInstanceOf (InclusiveNamespaces::class, $ transform ->getInclusiveNamespaces ());
62+ $ this ->assertNull ($ transform ->getXPath ());
63+
64+ $ xmlRepresentation = DOMDocumentFactory::fromFile (
65+ dirname (dirname (dirname (__FILE__ ))) .
66+ '/resources/xml/ds_Transform_InclusiveNamespaces.xml '
67+ );
68+ $ this ->assertEquals (
69+ $ xmlRepresentation ->saveXML ($ xmlRepresentation ->documentElement ),
70+ strval ($ transform )
71+ );
5272 }
5373
5474
You can’t perform that action at this time.
0 commit comments