You are here

trait ErrorHelpers in Auth0 Single Sign On 8.2

Hierarchy

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

... See full list

File

vendor/auth0/auth0-php/tests/traits/ErrorHelpers.php, line 4

Namespace

Auth0\Tests\Traits
View 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

Namesort descending Modifiers Type Description Overrides
ErrorHelpers::errorHasString protected function Does an error message contain a specific string?