Verify that the document only contains a single Assertion
public validateNumAssertions ( ) : boolean | ||
return | boolean | TRUE if the document passes. |
public function testValidateNumAssertions() { $assertion = file_get_contents(TEST_ROOT . '/data/responses/response1.xml.base64'); $response = new OneLogin_Saml_Response($this->_settings, $assertion); $xmlSec = new OneLogin_Saml_XmlSec($this->_settings, $response); $this->assertTrue($xmlSec->validateNumAssertions()); }