SAML2\XML\shibmd\ScopeTest::testUnmarshallingLiteral PHP Method

testUnmarshallingLiteral() public method

Unmarshalling a scope in literal (non-regexp) form.
    public function testUnmarshallingLiteral()
    {
        $document = DOMDocumentFactory::fromString(<<<XML
<shibmd:Scope regexp="false">example.org</shibmd:Scope>
XML
);
        $scope = new Scope($document->firstChild);
        $this->assertEquals('example.org', $scope->scope);
        $this->assertFalse($scope->regexp);
    }