PHP Class Larabros\Elogram\Http\Clients\MockAdapter

Inheritance: extends AbstractAdapter
Mostrar archivo Open project: larabros/elogram

Protected Properties

Property Type Description
$fixturesPath string

Public Methods

Method Description
__construct ( string $fixturesPath ) Creates a new instance of :php:class:MockAdapter.
request ( $method, $uri, array $parameters = [] ) {@inheritDoc}

Protected Methods

Method Description
cleanPath ( $uri ) : string Removes any unwanted suffixes and values from a URL path.
mapRequestParameters ( $parameters ) : string Parses any filename properties from the request parameters.
mapRequestToFile ( string $method, string $uri, array $parameters ) : string Parse the correct filename from the request.

Method Details

__construct() public method

Creates a new instance of :php:class:MockAdapter.
public __construct ( string $fixturesPath )
$fixturesPath string

cleanPath() protected method

Removes any unwanted suffixes and values from a URL path.
protected cleanPath ( $uri ) : string
$uri
return string

mapRequestParameters() protected method

Parses any filename properties from the request parameters.
protected mapRequestParameters ( $parameters ) : string
$parameters
return string

mapRequestToFile() protected method

Parse the correct filename from the request.
protected mapRequestToFile ( string $method, string $uri, array $parameters ) : string
$method string
$uri string
$parameters array
return string

request() public method

{@inheritDoc}
public request ( $method, $uri, array $parameters = [] )
$parameters array

Property Details

$fixturesPath protected_oe property

protected string $fixturesPath
return string