Skip to content

Commit 035a3bf

Browse files
Change exception message
1 parent 8fe3ab4 commit 035a3bf

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/Saml2/LogoutRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public static function getID($request)
163163

164164
if (false === $dom) {
165165
throw new OneLogin_Saml2_Error(
166-
"XML is invalid",
166+
"LogoutRequest could not be processed",
167167
OneLogin_Saml2_Error::SAML_LOGOUTREQUEST_INVALID
168168
);
169169
}

lib/Saml2/LogoutResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function __construct(OneLogin_Saml2_Settings $settings, $response = null)
6767

6868
if (false === $this->document) {
6969
throw new OneLogin_Saml2_Error(
70-
"XML is invalid",
70+
"LogoutResponse could not be processed",
7171
OneLogin_Saml2_Error::SAML_LOGOUTRESPONSE_INVALID
7272
);
7373
}

tests/src/OneLogin/Saml2/LogoutRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ public function testGetID()
861861
* @covers OneLogin_Saml2_LogoutRequest::getID()
862862
*
863863
* @expectedException OneLogin_Saml2_Error
864-
* @expectedExceptionMessage XML is invalid
864+
* @expectedExceptionMessage LogoutRequest could not be processed
865865
*/
866866
public function testGetIDException()
867867
{

tests/src/OneLogin/Saml2/LogoutResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public function testGetID()
509509
* @covers OneLogin_Saml2_LogoutRequest::getID()
510510
*
511511
* @expectedException OneLogin_Saml2_Error
512-
* @expectedExceptionMessage XML is invalid
512+
* @expectedExceptionMessage LogoutResponse could not be processed
513513
*/
514514
public function testGetIDException()
515515
{

0 commit comments

Comments
 (0)