trait ErrorHelpers in Auth0 Single Sign On 8.2
Hierarchy
- trait \Auth0\Tests\Traits\ErrorHelpers
8 files declare their use of ErrorHelpers
- ApiTests.php in vendor/
auth0/ auth0-php/ tests/ API/ ApiTests.php - Auth0Test.php in vendor/
auth0/ auth0-php/ tests/ Auth0Test.php - ConnectionsMockedTest.php in vendor/
auth0/ auth0-php/ tests/ API/ Management/ ConnectionsMockedTest.php - GrantsMockedTest.php in vendor/
auth0/ auth0-php/ tests/ API/ Management/ GrantsMockedTest.php - PasswordGrantTest.php in vendor/
auth0/ auth0-php/ tests/ API/ Authentication/ PasswordGrantTest.php
File
- vendor/
auth0/ auth0-php/ tests/ traits/ ErrorHelpers.php, line 4
Namespace
Auth0\Tests\TraitsView source
trait ErrorHelpers {
/**
* Does an error message contain a specific string?
*
* @param \Exception $e - Error object.
* @param string $str - String to find in the error message.
*
* @return boolean
*/
protected function errorHasString(\Exception $e, $str) {
return !(false === strpos($e
->getMessage(), $str));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ErrorHelpers:: |
protected | function | Does an error message contain a specific string? |