Exemplo n.º 1
0
 public function setUp()
 {
     $this->client = new Client('username', 'password');
     $this->httpRequest = new CurlGet();
     $this->client->setHttpRequest($this->httpRequest);
 }
Exemplo n.º 2
0
 /**
  * @return bool
  * @throws \Exception
  */
 public function send()
 {
     $this->doValidation();
     $values = $this->prepareValues();
     return $this->client->doRequest($values);
 }
Exemplo n.º 3
0
 /**
  * @expectedException        \Exception
  * @expectedExceptionMessage Error message.
  * @expectedExceptionCode    1234
  */
 public function testResponseErrorCode()
 {
     $failure = "<?xml version=\"1.0\"?>\n<ack refno=\"1234\" errorcode=\"1234\">Error message.</ack>";
     $this->client->parseResponse($failure, 200);
 }