SAML2\XML\mdrpi\RegistrationInfoTest::testMissingPublisherThrowsException PHP Метод

testMissingPublisherThrowsException() публичный Метод

    public function testMissingPublisherThrowsException()
    {
        $document = DOMDocumentFactory::fromString(<<<XML
<mdrpi:RegistrationInfo xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi"
                       registrationInstant="2011-01-01T00:00:00Z">
</mdrpi:RegistrationInfo>
XML
);
        $this->setExpectedException('Exception', 'Missing required attribute "registrationAuthority"');
        $registrationInfo = new RegistrationInfo($document->firstChild);
    }