protected function ErrorHelpers::errorHasString in Auth0 Single Sign On 8.2
Does an error message contain a specific string?
Parameters
\Exception $e - Error object.:
string $str - String to find in the error message.:
Return value
boolean
25 calls to ErrorHelpers::errorHasString()
- Auth0Test::testThatRenewTokensFailsIfNoAccessOrIdTokenReturned in vendor/
auth0/ auth0-php/ tests/ Auth0Test.php - Test that renewTokens fails if the API response is invalid.
- Auth0Test::testThatRenewTokensFailsIfThereIsNoAccessToken in vendor/
auth0/ auth0-php/ tests/ Auth0Test.php - Test that renewTokens fails if there is no access_token stored.
- Auth0Test::testThatRenewTokensFailsIfThereIsNoRefreshToken in vendor/
auth0/ auth0-php/ tests/ Auth0Test.php - Test that renewTokens fails if there is no refresh_token stored.
- ClientGrantsTest::testCreateGrantExceptions in vendor/
auth0/ auth0-php/ tests/ API/ Management/ ClientGrantsTest.php - Test that create method throws errors correctly.
- ConnectionsTestMocked::testThatConnectionsCreateThrowsExceptions in vendor/
auth0/ auth0-php/ tests/ API/ Management/ ConnectionsMockedTest.php - Test a connection create call exceptions.
File
- vendor/
auth0/ auth0-php/ tests/ traits/ ErrorHelpers.php, line 15
Class
Namespace
Auth0\Tests\TraitsCode
protected function errorHasString(\Exception $e, $str) {
return !(false === strpos($e
->getMessage(), $str));
}