Пример #1
0
 /**
  * Sends a test request to the remote API.
  *
  * @return  array   the response in a dictionary with following keys:
  * <pre>
  *  'httpStatus'    => The 2xx HTTP status code {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2}
  *  'httpResponse'  => The HTTP response
  * </pre>
  *
  * @throws  Payplug\Exception\UnexpectedAPIResponseException  When the API response is not parsable in JSON.
  * @throws  Payplug\Exception\HttpException                   When status code is not 2xx.
  * @throws  Payplug\Exception\ConnectionException             When an error was encountered while connecting to the resource.
  */
 public function testRemote()
 {
     return $this->request('GET', APIRoutes::getTestRoute(), null, false);
 }