public function setUp()
 {
     parent::setUp();
     $data = file_get_contents('Tests/Mock/ErrorResponse.txt');
     $this->request = $this->getMockForAbstractClass(AbstractRequest::class, [new HttpClient()]);
     $this->response = new Response($this->request, $data);
 }
 /**
  * Create a mock Guzzle Client with example response
  */
 public function setUp()
 {
     parent::setUp();
     $request = $this->getMockHttpResponse('ClassifySuccess.txt');
     $httpClient = $this->getMockHttpClientWithHistoryAndResponses($this->container, [$request]);
     $this->request = new ClassifyRequest($httpClient);
     $this->request->initialize(['images_file' => 'Tests/images/hummingbird-1047836_640.jpg', 'classifier_ids' => [1, 2, 3]]);
 }
 /**
  * Create a mock Guzzle Client with example response
  */
 public function setUp()
 {
     parent::setUp();
     $request = $this->getMockHttpResponse('CreateClassifierSuccess.txt');
     $httpClient = $this->getMockHttpClientWithHistoryAndResponses($this->container, [$request]);
     $this->request = new CreateClassifierRequest($httpClient);
     $this->request->initialize(['positive_examples' => 'Tests/images/butterfly-positive.zip', 'negative_examples' => 'Tests/images/butterfly-negative.zip', 'name' => 'butterfly']);
 }