validateNumAssertions() public method

Verify that the document only contains a single Assertion
public validateNumAssertions ( ) : boolean
return boolean TRUE if the document passes.
コード例 #1
0
ファイル: XmlSecTest.php プロジェクト: theprincy/php-saml
 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());
 }