public function testUnmarshallingChildren()
{
$document = DOMDocumentFactory::fromString(<<<XML
<mdui:DiscoHints xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui">
<mdui:GeolocationHint>geo:47.37328,8.531126</mdui:GeolocationHint>
<child1>content of tag</child1>
</mdui:DiscoHints>
XML
);
$disco = new DiscoHints($document->firstChild);
$this->assertCount(1, $disco->GeolocationHint);
$this->assertEquals('geo:47.37328,8.531126', $disco->GeolocationHint[0]);
$this->assertCount(1, $disco->children);
$this->assertEquals('content of tag', $disco->children[0]->xml->textContent);
}