You are here

class MockAuthenticationApi in Auth0 Single Sign On 8.2

Class MockAuthenticationApi

@package Auth0\Tests\API\Authentication

Hierarchy

Expanded class hierarchy of MockAuthenticationApi

1 file declares its use of MockAuthenticationApi
InformationHeadersExtendTest.php in vendor/auth0/auth0-php/tests/API/Helpers/InformationHeadersExtendTest.php

File

vendor/auth0/auth0-php/tests/API/Authentication/MockAuthenticationApi.php, line 12

Namespace

Auth0\Tests\API\Authentication
View source
class MockAuthenticationApi extends MockApi {

  /**
   * @var Authentication
   */
  protected $client;

  /**
   * @param array $guzzleOptions
   * @param array $config
   */
  public function setClient(array $guzzleOptions, array $config = []) {
    $this->client = new Authentication('test-domain.auth0.com', '__test_client_id__', '__test_client_secret__', null, null, $guzzleOptions);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MockApi::$historyIndex protected property History index to use.
MockApi::$requestHistory protected property Guzzle request history container for mock API.
MockApi::call public function Return the endpoint being used.
MockApi::getHistory protected function Get a Guzzle history record from an array populated by Middleware::history().
MockApi::getHistoryBody public function Get the body from a mocked request.
MockApi::getHistoryBodyAsString public function Get the form body from a mocked request.
MockApi::getHistoryHeaders public function Get the headers from a mocked request.
MockApi::getHistoryMethod public function Get the HTTP method from a mocked request.
MockApi::getHistoryQuery public function Get the URL query from a mocked request.
MockApi::getHistoryUrl public function Get the URL from a mocked request.
MockApi::__construct public function MockApi constructor.
MockAuthenticationApi::$client protected property Overrides MockApi::$client
MockAuthenticationApi::setClient public function Overrides MockApi::setClient