public function dispatch(ParametersInterface $parameters, Request $request, AdapterInterface $console)
 {
     $console->writeLine('Updating address formats, this may take a while.');
     $this->maintenanceService->updateAddressFormats(new ConsoleAdapter());
     $console->writeLine('Address formats have been updated.');
 }
 /**
  * @covers ::updateAddressFormats
  */
 public function testUpdateAddressFormatsUsesProgresAdapter()
 {
     $testAdapter = new HttpTestAdapter();
     $testAdapter->setResponse([(new HttpResponse())->setContent('empty'), (new HttpResponse())->setContent('{"name": "ZZ"}')]);
     $httpClient = new HttpClient();
     $httpClient->setAdapter($testAdapter);
     $progressAdapter = $this->getMock('Zend\\ProgressBar\\Adapter\\AbstractAdapter');
     $progressAdapter->expects($this->any())->method('notify')->with($this->logicalOr($this->equalTo(0.0), $this->equalTo(1.0)), $this->equalTo(1.0));
     $maintenanceService = new MaintenanceService($this->options, $httpClient);
     $maintenanceService->updateAddressFormats($progressAdapter);
 }