SAML2\XML\mdui\LogoTest::testUnmarshalling PHP Method

testUnmarshalling() public method

Unmarshalling of a logo tag
public testUnmarshalling ( )
    public function testUnmarshalling()
    {
        $document = DOMDocumentFactory::fromString(<<<XML
<mdui:Logo height="200" width="300" xml:lang="nl">https://static.example.org/images/logos/logo300x200.png</mdui:Logo>
XML
);
        $logo = new Logo($document->firstChild);
        $this->assertEquals("nl", $logo->lang);
        $this->assertEquals(300, $logo->width);
        $this->assertEquals(200, $logo->height);
        $this->assertEquals("https://static.example.org/images/logos/logo300x200.png", $logo->url);
    }