diff --git a/composer.json b/composer.json index 059121e..270c2d5 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "ext-pcre": "*", "simplesamlphp/assert": "^1.0", - "simplesamlphp/xml-common": "^1.13" + "simplesamlphp/xml-common": "^1.14" }, "require-dev": { "simplesamlphp/simplesamlphp-test-framework": "^1.5" diff --git a/tests/SOAP11/XML/env/BodyTest.php b/tests/SOAP11/XML/env/BodyTest.php index 6a20edb..67c6d5b 100644 --- a/tests/SOAP11/XML/env/BodyTest.php +++ b/tests/SOAP11/XML/env/BodyTest.php @@ -98,17 +98,4 @@ public function testMarshallingWithMultipleFaults(): void [], ); } - - - /** - */ - public function testUnmarshalling(): void - { - $body = Body::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($body) - ); - } } diff --git a/tests/SOAP11/XML/env/DetailTest.php b/tests/SOAP11/XML/env/DetailTest.php index aa15def..a88b9ff 100644 --- a/tests/SOAP11/XML/env/DetailTest.php +++ b/tests/SOAP11/XML/env/DetailTest.php @@ -75,17 +75,4 @@ public function testMarshallingWithNoContent(): void ); $this->assertTrue($detail->isEmptyElement()); } - - - /** - */ - public function testUnmarshalling(): void - { - $detail = Detail::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($detail) - ); - } } diff --git a/tests/SOAP11/XML/env/EnvelopeTest.php b/tests/SOAP11/XML/env/EnvelopeTest.php index e9c8b91..d0049d4 100644 --- a/tests/SOAP11/XML/env/EnvelopeTest.php +++ b/tests/SOAP11/XML/env/EnvelopeTest.php @@ -83,17 +83,4 @@ public function testMarshalling(): void strval($envelope), ); } - - - /** - */ - public function testUnmarshalling(): void - { - $envelope = Envelope::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($envelope), - ); - } } diff --git a/tests/SOAP11/XML/env/FaultActorTest.php b/tests/SOAP11/XML/env/FaultActorTest.php index c96e231..13c2d57 100644 --- a/tests/SOAP11/XML/env/FaultActorTest.php +++ b/tests/SOAP11/XML/env/FaultActorTest.php @@ -48,17 +48,4 @@ public function testMarshalling(): void strval($faultActor) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $faultActor = FaultActor::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($faultActor) - ); - } } diff --git a/tests/SOAP11/XML/env/FaultCodeTest.php b/tests/SOAP11/XML/env/FaultCodeTest.php index 6120f5f..99d32fa 100644 --- a/tests/SOAP11/XML/env/FaultCodeTest.php +++ b/tests/SOAP11/XML/env/FaultCodeTest.php @@ -49,17 +49,4 @@ public function testMarshalling(): void strval($faultCode) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $faultCode = FaultCode::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($faultCode) - ); - } } diff --git a/tests/SOAP11/XML/env/FaultStringTest.php b/tests/SOAP11/XML/env/FaultStringTest.php index 4f619c0..b07bd53 100644 --- a/tests/SOAP11/XML/env/FaultStringTest.php +++ b/tests/SOAP11/XML/env/FaultStringTest.php @@ -49,17 +49,4 @@ public function testMarshalling(): void strval($faultString) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $faultString = FaultString::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($faultString) - ); - } } diff --git a/tests/SOAP11/XML/env/FaultTest.php b/tests/SOAP11/XML/env/FaultTest.php index 476a8a8..9c4e874 100644 --- a/tests/SOAP11/XML/env/FaultTest.php +++ b/tests/SOAP11/XML/env/FaultTest.php @@ -68,17 +68,4 @@ public function testMarshalling(): void strval($fault) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $fault = Fault::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($fault) - ); - } } diff --git a/tests/SOAP11/XML/env/HeaderTest.php b/tests/SOAP11/XML/env/HeaderTest.php index 5299095..c202837 100644 --- a/tests/SOAP11/XML/env/HeaderTest.php +++ b/tests/SOAP11/XML/env/HeaderTest.php @@ -79,17 +79,4 @@ public function testMarshallingWithNoContent(): void ); $this->assertTrue($header->isEmptyElement()); } - - - /** - */ - public function testUnmarshalling(): void - { - $header = Header::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($header) - ); - } } diff --git a/tests/SOAP12/XML/env/BodyTest.php b/tests/SOAP12/XML/env/BodyTest.php index 56c4345..23da40d 100644 --- a/tests/SOAP12/XML/env/BodyTest.php +++ b/tests/SOAP12/XML/env/BodyTest.php @@ -115,17 +115,4 @@ public function testMarshallingWithFaultAndContent(): void [], ); } - - - /** - */ - public function testUnmarshalling(): void - { - $body = Body::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($body) - ); - } } diff --git a/tests/SOAP12/XML/env/CodeTest.php b/tests/SOAP12/XML/env/CodeTest.php index 46f436c..c751b8c 100644 --- a/tests/SOAP12/XML/env/CodeTest.php +++ b/tests/SOAP12/XML/env/CodeTest.php @@ -58,17 +58,4 @@ public function testMarshalling(): void strval($code) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $code = Code::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($code) - ); - } } diff --git a/tests/SOAP12/XML/env/DetailTest.php b/tests/SOAP12/XML/env/DetailTest.php index d700f54..f499ce0 100644 --- a/tests/SOAP12/XML/env/DetailTest.php +++ b/tests/SOAP12/XML/env/DetailTest.php @@ -75,17 +75,4 @@ public function testMarshallingWithNoContent(): void ); $this->assertTrue($detail->isEmptyElement()); } - - - /** - */ - public function testUnmarshalling(): void - { - $detail = Detail::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($detail) - ); - } } diff --git a/tests/SOAP12/XML/env/EnvelopeTest.php b/tests/SOAP12/XML/env/EnvelopeTest.php index 4c00606..86f0e11 100644 --- a/tests/SOAP12/XML/env/EnvelopeTest.php +++ b/tests/SOAP12/XML/env/EnvelopeTest.php @@ -76,17 +76,4 @@ public function testMarshalling(): void strval($envelope), ); } - - - /** - */ - public function testUnmarshalling(): void - { - $envelope = Envelope::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($envelope), - ); - } } diff --git a/tests/SOAP12/XML/env/FaultTest.php b/tests/SOAP12/XML/env/FaultTest.php index 924b7ae..0f86d98 100644 --- a/tests/SOAP12/XML/env/FaultTest.php +++ b/tests/SOAP12/XML/env/FaultTest.php @@ -76,17 +76,4 @@ public function testMarshalling(): void strval($fault) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $fault = Fault::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($fault) - ); - } } diff --git a/tests/SOAP12/XML/env/HeaderTest.php b/tests/SOAP12/XML/env/HeaderTest.php index d6242b4..69d8551 100644 --- a/tests/SOAP12/XML/env/HeaderTest.php +++ b/tests/SOAP12/XML/env/HeaderTest.php @@ -79,17 +79,4 @@ public function testMarshallingWithNoContent(): void ); $this->assertTrue($header->isEmptyElement()); } - - - /** - */ - public function testUnmarshalling(): void - { - $header = Header::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($header) - ); - } } diff --git a/tests/SOAP12/XML/env/NodeTest.php b/tests/SOAP12/XML/env/NodeTest.php index 0c1f414..3e9cb94 100644 --- a/tests/SOAP12/XML/env/NodeTest.php +++ b/tests/SOAP12/XML/env/NodeTest.php @@ -48,17 +48,4 @@ public function testMarshalling(): void strval($node) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $node = Node::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($node) - ); - } } diff --git a/tests/SOAP12/XML/env/NotUnderstoodTest.php b/tests/SOAP12/XML/env/NotUnderstoodTest.php index d1587ac..797a408 100644 --- a/tests/SOAP12/XML/env/NotUnderstoodTest.php +++ b/tests/SOAP12/XML/env/NotUnderstoodTest.php @@ -52,17 +52,4 @@ public function testMarshalling(): void strval($notUnderstood) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $notUnderstood = NotUnderstood::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($notUnderstood) - ); - } } diff --git a/tests/SOAP12/XML/env/ReasonTest.php b/tests/SOAP12/XML/env/ReasonTest.php index 9231cc9..08575c6 100644 --- a/tests/SOAP12/XML/env/ReasonTest.php +++ b/tests/SOAP12/XML/env/ReasonTest.php @@ -52,17 +52,4 @@ public function testMarshalling(): void strval($reason) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $reason = Reason::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($reason) - ); - } } diff --git a/tests/SOAP12/XML/env/RoleTest.php b/tests/SOAP12/XML/env/RoleTest.php index 7340c6f..d7c8325 100644 --- a/tests/SOAP12/XML/env/RoleTest.php +++ b/tests/SOAP12/XML/env/RoleTest.php @@ -48,17 +48,4 @@ public function testMarshalling(): void strval($role) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $role = Role::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($role) - ); - } } diff --git a/tests/SOAP12/XML/env/SubcodeTest.php b/tests/SOAP12/XML/env/SubcodeTest.php index b034fe2..f4a2e0d 100644 --- a/tests/SOAP12/XML/env/SubcodeTest.php +++ b/tests/SOAP12/XML/env/SubcodeTest.php @@ -50,17 +50,4 @@ public function testMarshalling(): void strval($subcode) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $subcode = Subcode::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($subcode) - ); - } } diff --git a/tests/SOAP12/XML/env/SupportedEnvelopeTest.php b/tests/SOAP12/XML/env/SupportedEnvelopeTest.php index de566c4..866ed99 100644 --- a/tests/SOAP12/XML/env/SupportedEnvelopeTest.php +++ b/tests/SOAP12/XML/env/SupportedEnvelopeTest.php @@ -49,17 +49,4 @@ public function testMarshalling(): void strval($supportedEnvelope) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $supportedEnvelope = SupportedEnvelope::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($supportedEnvelope) - ); - } } diff --git a/tests/SOAP12/XML/env/TextTest.php b/tests/SOAP12/XML/env/TextTest.php index 0c73329..1d08c72 100644 --- a/tests/SOAP12/XML/env/TextTest.php +++ b/tests/SOAP12/XML/env/TextTest.php @@ -48,17 +48,4 @@ public function testMarshalling(): void strval($text) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $text = Text::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($text) - ); - } } diff --git a/tests/SOAP12/XML/env/UpgradeTest.php b/tests/SOAP12/XML/env/UpgradeTest.php index 7e7b4a5..a2cbf98 100644 --- a/tests/SOAP12/XML/env/UpgradeTest.php +++ b/tests/SOAP12/XML/env/UpgradeTest.php @@ -54,17 +54,4 @@ public function testMarshalling(): void strval($upgrade) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $upgrade = Upgrade::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($upgrade) - ); - } } diff --git a/tests/SOAP12/XML/env/ValueTest.php b/tests/SOAP12/XML/env/ValueTest.php index d89cf2d..6369243 100644 --- a/tests/SOAP12/XML/env/ValueTest.php +++ b/tests/SOAP12/XML/env/ValueTest.php @@ -49,17 +49,4 @@ public function testMarshalling(): void strval($value) ); } - - - /** - */ - public function testUnmarshalling(): void - { - $value = Value::fromXML(self::$xmlRepresentation->documentElement); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($value) - ); - } }