/**
* Tests the getNameId method of the OneLogin_Saml2_Response
* Case valid signed response, signed assertion
*
* @covers OneLogin_Saml2_Response::getNameId
*/
public function testResponseAndAssertionSigned()
{
// Both the Response and the Asseretion are signed
$message = file_get_contents(TEST_ROOT . '/data/responses/simple_saml_php.xml');
$response = new OneLogin_Saml2_Response($this->_settings, base64_encode($message));
$this->assertEquals('*****@*****.**', $response->getNameId());
}