Skip to content

Commit 88c5e59

Browse files
authored
Merge pull request SAML-Toolkits#480 from awelburn/FixTypos
Fix typos in error messages
2 parents 748abe1 + 9e15d14 commit 88c5e59

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Saml2/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ public function getNameIdData()
624624
$spEntityId = $spData['entityId'];
625625
if ($spEntityId != $nameId->getAttribute($attr)) {
626626
throw new OneLogin_Saml2_ValidationError(
627-
"The SPNameQualifier value mistmatch the SP entityID value.",
627+
"The SPNameQualifier value mismatch the SP entityID value.",
628628
OneLogin_Saml2_ValidationError::SP_NAME_QUALIFIER_NAME_MISMATCH
629629
);
630630
}

tests/src/OneLogin/Saml2/ResponseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function testReturnNameId()
184184
$nameId10 = $response10->getNameId();
185185
$this->fail('OneLogin_Saml2_ValidationError was not raised');
186186
} catch (OneLogin_Saml2_ValidationError $e) {
187-
$this->assertContains('The SPNameQualifier value mistmatch the SP entityID value.', $e->getMessage());
187+
$this->assertContains('The SPNameQualifier value mismatch the SP entityID value.', $e->getMessage());
188188
}
189189

190190
$response11 = new OneLogin_Saml2_Response($settings, $xml6);
@@ -395,7 +395,7 @@ public function testGetNameIdData()
395395
$nameIdData10 = $response10->getNameIdData();
396396
$this->fail('OneLogin_Saml2_ValidationError was not raised');
397397
} catch (OneLogin_Saml2_ValidationError $e) {
398-
$this->assertContains('The SPNameQualifier value mistmatch the SP entityID value.', $e->getMessage());
398+
$this->assertContains('The SPNameQualifier value mismatch the SP entityID value.', $e->getMessage());
399399
}
400400

401401
$response11 = new OneLogin_Saml2_Response($settings, $xml6);

0 commit comments

Comments
 (0)