/**
  * Check that exception is thrown if incorrect file type provided
  *
  * @expectedException \InvalidArgumentException
  */
 public function testDisallowedFileType()
 {
     $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.tom']);
     $this->request->send();
 }
 /**
  * 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']);
 }