Gets the audiences.
public getAudiences ( ) : array | ||
return | array | @audience The valid audiences of the response |
/** * Tests the getAudiences method of the OneLogin_Saml2_Response * * @covers OneLogin_Saml2_Response::getAudiences */ public function testGetAudiences() { $xml = file_get_contents(TEST_ROOT . '/data/responses/response1.xml.base64'); $response = new OneLogin_Saml2_Response($this->_settings, $xml); $this->assertEquals(array('{audience}'), $response->getAudiences()); $xml2 = file_get_contents(TEST_ROOT . '/data/responses/valid_encrypted_assertion.xml.base64'); $response2 = new OneLogin_Saml2_Response($this->_settings, $xml2); $this->assertEquals(array('http://stuff.com/endpoints/metadata.php'), $response2->getAudiences()); }