validateNumAssertions() public method

Verify that the document only contains a single Assertion
public validateNumAssertions ( ) : boolean
return boolean TRUE if the document passes.
Ejemplo n.º 1
0
 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());
 }