44
55namespace SimpleSAML \Test \XML ;
66
7+ use Dom ;
78use PHPUnit \Framework \Attributes \CoversClass ;
89use PHPUnit \Framework \TestCase ;
910use SimpleSAML \Test \Helper \Element ;
@@ -49,7 +50,7 @@ public function testMarshalling(): void
4950 );
5051
5152 $ representationRoot = self ::$ xmlRepresentation ->documentElement ;
52- $ this ->assertInstanceOf (\ Dom \Element::class, $ representationRoot );
53+ $ this ->assertInstanceOf (Dom \Element::class, $ representationRoot );
5354
5455 $ expectedXml = self ::$ xmlRepresentation ->saveXml ($ representationRoot );
5556 $ this ->assertNotSame ('' , $ expectedXml );
@@ -63,10 +64,10 @@ public function testMarshalling(): void
6364 $ actualDoc = DOMDocumentFactory::fromString ($ actualXml );
6465
6566 $ expectedRoot = $ expectedDoc ->documentElement ;
66- $ this ->assertInstanceOf (\ Dom \Element::class, $ expectedRoot );
67+ $ this ->assertInstanceOf (Dom \Element::class, $ expectedRoot );
6768
6869 $ actualRoot = $ actualDoc ->documentElement ;
69- $ this ->assertInstanceOf (\ Dom \Element::class, $ actualRoot );
70+ $ this ->assertInstanceOf (Dom \Element::class, $ actualRoot );
7071
7172 $ this ->assertSame (
7273 $ expectedRoot ->C14N (),
@@ -78,7 +79,7 @@ public function testMarshalling(): void
7879 public function testUnmarshalling (): void
7980 {
8081 $ elt = self ::$ xmlRepresentation ->documentElement ;
81- $ this ->assertInstanceOf (\ Dom \Element::class, $ elt );
82+ $ this ->assertInstanceOf (Dom \Element::class, $ elt );
8283
8384 $ element = Element::fromXML ($ elt );
8485
@@ -92,7 +93,7 @@ public function testUnmarshalling(): void
9293 public function testGetAttribute (): void
9394 {
9495 $ xml = self ::$ xmlRepresentation ->documentElement ;
95- $ this ->assertInstanceOf (\ Dom \Element::class, $ xml );
96+ $ this ->assertInstanceOf (Dom \Element::class, $ xml );
9697
9798 // Get mandatory attributes
9899 $ this ->assertEquals ('text ' , Element::getAttribute ($ xml , 'text ' , StringValue::class));
@@ -152,7 +153,7 @@ public function testGetAttribute(): void
152153 public function testGetAttributeThrowsExceptionOnMissingAttribute (): void
153154 {
154155 $ xml = self ::$ xmlRepresentation ->documentElement ;
155- $ this ->assertInstanceOf (\ Dom \Element::class, $ xml );
156+ $ this ->assertInstanceOf (Dom \Element::class, $ xml );
156157
157158 $ xml = clone $ xml ;
158159 $ xml ->removeAttribute ('text ' );
@@ -165,7 +166,7 @@ public function testGetAttributeThrowsExceptionOnMissingAttribute(): void
165166 public function testGetBooleanAttributeThrowsExceptionOnMissingAttribute (): void
166167 {
167168 $ xml = self ::$ xmlRepresentation ->documentElement ;
168- $ this ->assertInstanceOf (\ Dom \Element::class, $ xml );
169+ $ this ->assertInstanceOf (Dom \Element::class, $ xml );
169170
170171 $ xml = clone $ xml ;
171172 $ xml ->removeAttribute ('boolean ' );
@@ -178,7 +179,7 @@ public function testGetBooleanAttributeThrowsExceptionOnMissingAttribute(): void
178179 public function testGetIntegerAttributeThrowsExceptionOnMissingAttribute (): void
179180 {
180181 $ xml = self ::$ xmlRepresentation ->documentElement ;
181- $ this ->assertInstanceOf (\ Dom \Element::class, $ xml );
182+ $ this ->assertInstanceOf (Dom \Element::class, $ xml );
182183
183184 $ xml = clone $ xml ;
184185 $ xml ->removeAttribute ('integer ' );
0 commit comments