SAML2\XML\mdrpi\RegistrationInfoTest::testEmptyRegistrationAuthorityOutboundThrowsException PHP Method

testEmptyRegistrationAuthorityOutboundThrowsException() public method

    public function testEmptyRegistrationAuthorityOutboundThrowsException()
    {
        $registrationInfo = new RegistrationInfo();
        $registrationInfo->registrationAuthority = '';
        $document = DOMDocumentFactory::fromString('<root />');
        $this->setExpectedException('Exception', 'Missing required registration authority.');
        $xml = $registrationInfo->toXML($document->firstChild);
    }