Skip to content

Commit

Permalink
Fix typo on SPNameQualifier mismatch error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed May 30, 2024
1 parent c43d61b commit 6d023e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Saml2/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ public function getNameIdData()
$spEntityId = $spData['entityId'];
if ($spEntityId != $nameId->getAttribute($attr)) {
throw new ValidationError(
"The SPNameQualifier value mistmatch the SP entityID value.",
"The SPNameQualifier value mismatch the SP entityID value.",
ValidationError::SP_NAME_QUALIFIER_NAME_MISMATCH
);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/src/OneLogin/Saml2/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function testReturnNameId()
$nameId10 = $response10->getNameId();
$this->fail('ValidationError was not raised');
} catch (ValidationError $e) {
$this->assertStringContainsString('The SPNameQualifier value mistmatch the SP entityID value.', $e->getMessage());
$this->assertStringContainsString('The SPNameQualifier value mismatch the SP entityID value.', $e->getMessage());
}

$response11 = new Response($settings, $xml6);
Expand Down Expand Up @@ -405,7 +405,7 @@ public function testGetNameIdData()
$nameIdData10 = $response10->getNameIdData();
$this->fail('ValidationError was not raised');
} catch (ValidationError $e) {
$this->assertStringContainsString('The SPNameQualifier value mistmatch the SP entityID value.', $e->getMessage());
$this->assertStringContainsString('The SPNameQualifier value mismatch the SP entityID value.', $e->getMessage());
}

$response11 = new Response($settings, $xml6);
Expand Down

0 comments on commit 6d023e0

Please sign in to comment.