getHttpClient(); $this->httpRequest = $this->getHttpRequest(); $this->request = new CompletePurchaseRequest($client, $this->httpRequest); } /** * @expectedException \Omnipay\Common\Exception\InvalidResponseException */ public function testGetDataThrowsExceptionWithoutResponseCode() { $this->httpRequest->query->set('transactionId', 'TRANS-123'); $this->request->getData(); } /** * @expectedException \Omnipay\Common\Exception\InvalidResponseException */ public function testGetDataThrowsExceptionWithoutTransactionId() { $this->httpRequest->query->set('responseCode', 'ABC-123'); $this->request->getData(); } }