diff --git a/src/Saml2/Response.php b/src/Saml2/Response.php index 68b2b8ec..b987ca44 100644 --- a/src/Saml2/Response.php +++ b/src/Saml2/Response.php @@ -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 ); } diff --git a/tests/src/OneLogin/Saml2/ResponseTest.php b/tests/src/OneLogin/Saml2/ResponseTest.php index d3c7898c..258313a6 100644 --- a/tests/src/OneLogin/Saml2/ResponseTest.php +++ b/tests/src/OneLogin/Saml2/ResponseTest.php @@ -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); @@ -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);