Open Journal Systems
3.3.0
|
Static Public Member Functions | |
static | factory ($config=array()) |
![]() | |
static | getAllEvents () |
![]() | |
static | extractPharCacert ($pharCacertPath) |
Additional Inherited Members | |
![]() | |
__call ($method, $args) | |
enableMagicMethods ($isEnabled) | |
execute ($command) | |
getCommand ($name, array $args=array()) | |
getDescription () | |
getInflector () | |
getIterator ($command, array $commandOptions=null, array $iteratorOptions=array()) | |
setCommandFactory (CommandFactoryInterface $factory) | |
setDescription (ServiceDescriptionInterface $service) | |
setInflector (InflectorInterface $inflector) | |
setResourceIteratorFactory (ResourceIteratorFactoryInterface $factory) | |
![]() | |
__construct ($baseUrl='', $config=null) | |
createRequest ($method='GET', $uri=null, $headers=null, $body=null, array $options=array()) | |
delete ($uri=null, $headers=null, $body=null, array $options=array()) | |
get ($uri=null, $headers=null, $options=array()) | |
getBaseUrl ($expand=true) | |
getConfig ($key=false) | |
getCurlMulti () | |
getDefaultHeaders () | |
getDefaultOption ($keyOrPath) | |
getDefaultUserAgent () | |
head ($uri=null, $headers=null, array $options=array()) | |
options ($uri=null, array $options=array()) | |
patch ($uri=null, $headers=null, $body=null, array $options=array()) | |
post ($uri=null, $headers=null, $postBody=null, array $options=array()) | |
preparePharCacert ($md5Check=true) | |
put ($uri=null, $headers=null, $body=null, array $options=array()) | |
send ($requests) | |
setBaseUrl ($url) | |
setConfig ($config) | |
setCurlMulti (CurlMultiInterface $curlMulti) | |
setDefaultHeaders ($headers) | |
setDefaultOption ($keyOrPath, $value) | |
setRequestFactory (RequestFactoryInterface $factory) | |
setSslVerification ($certificateAuthority=true, $verifyPeer=true, $verifyHost=2) | |
setUriTemplate (UriTemplateInterface $uriTemplate) | |
setUserAgent ($userAgent, $includeDefault=false) | |
![]() | |
addSubscriber (EventSubscriberInterface $subscriber) | |
dispatch ($eventName, array $context=array()) | |
getEventDispatcher () | |
setEventDispatcher (EventDispatcherInterface $eventDispatcher) | |
![]() | |
const | COMMAND_PARAMS = 'command.params' |
![]() | |
const | CURL_OPTIONS = 'curl.options' |
const | DEFAULT_SELECT_TIMEOUT = 1.0 |
const | DISABLE_REDIRECTS = RedirectPlugin::DISABLE |
const | MAX_HANDLES = 3 |
const | REQUEST_OPTIONS = 'request.options' |
const | REQUEST_PARAMS = 'request.params' |
const | SSL_CERT_AUTHORITY = 'ssl.certificate_authority' |
![]() | |
const | CREATE_REQUEST = 'client.create_request' |
const | HTTP_DATE = 'D, d M Y H:i:s \G\M\T' |
![]() | |
executeMultiple ($commands) | |
getCommandFactory () | |
getResourceIteratorFactory () | |
prepareCommand (CommandInterface $command) | |
![]() | |
expandTemplate ($template, array $variables=null) | |
getUriTemplate () | |
initSsl () | |
prepareRequest (RequestInterface $request, array $options=array()) | |
sendMultiple (array $requests) | |
![]() | |
$commandFactory | |
$inflector | |
$resourceIteratorFactory | |
$serviceDescription | |
![]() | |
$defaultHeaders | |
$requestFactory | |
$userAgent | |
![]() | |
$eventDispatcher | |
Definition at line 11 of file MockClient.php.
|
static |
Factory method to create a new mock client
array | Collection | $config | Configuration data. Array keys: base_url - Base URL of web service api_version - API version scheme - URI scheme: http or https
|
Reimplemented from Guzzle\Service\Client.
Definition at line 26 of file MockClient.php.
References Guzzle\Common\Collection\fromConfig().