public function setUp()
 {
     $this->command = new HarvestCommand();
     $client = new Client();
     $this->history = new History();
     $client->getEmitter()->attach($this->history);
     $mock = new Mock([new Response(200, array('Content-Length' => ''), $this->getResponseBody())]);
     $client->getEmitter()->attach($mock);
     $this->command->setClient($client);
     parent::setUp();
 }
 public function setUp()
 {
     $this->command = new HarvestCommand();
     $client = new Client();
     $this->history = new History();
     $client->getEmitter()->attach($this->history);
     $mock = new Mock([new Response(200, array('Content-Length' => '10'), null), new Response(200, array('Content-Type' => 'application/zip'), null)]);
     $client->getEmitter()->attach($mock);
     $this->command->setClient($client);
     parent::setUp();
 }