/** * process the data from the response into simpler objects * * @param HttpApi * @return EbayEnterprise_Inventory_Model_Details_Result */ protected function prepareResult(HttpApi $api) { return $this->responseHelper->exportResultData($api->getResponseBody()); }
/** * @expectedException \eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError */ public function testSendHandlesRequestsException() { $this->apiStub->expects($this->any())->method('sendRequest')->will($this->throwException(new Requests_Exception_HTTP())); $this->apiStub->send(); }