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

testUnmarshallingRegexp() public method

Unmarshalling a scope in regexp form.
    public function testUnmarshallingRegexp()
    {
        $document = DOMDocumentFactory::fromString(<<<XML
<shibmd:Scope regexp="true">^(.*|)example.edu\$</shibmd:Scope>
XML
);
        $scope = new Scope($document->firstChild);
        $this->assertEquals('^(.*|)example.edu$', $scope->scope);
        $this->assertTrue($scope->regexp);
    }