Skip to content

Development

Tim van Dijen edited this page Oct 15, 2022 · 1 revision

The base can be found here: https://github.com/simplesamlphp/xml-common/wiki/Development

This library has one big exception for testUnmarshalling:

Classes that implement the SignedElementTrait need to be fully decomposed during Unmarshalling:

$reason = Reason::fromXML($this->xmlRepresentation->documentElement);
$text = $reason->getText();
$this->assertCount(2, $text);

$this->assertEquals('It\'s broken', $text[0]->getContent());
$this->assertEquals('en', $text[0]->getLanguage());
...

This is important, because regular marshalling/unmarshalling for signed objects wouldn't cover it's getters/setters.

Clone this wiki locally