/**
  * @expectedException RuntimeException
  * @expectedExceptionMessage  The selenium file does not exists. /tmp/selenium-server-standalone.jar
  */
 public function testDownloaderDownloads()
 {
     $destinationFolder = '/tmp';
     $destination = $destinationFolder . '/selenium-server-standalone.jar';
     is_file($destination) ? unlink($destination) : '';
     $downloadUrl = 'some_url';
     $this->seleniumOptions->expects($this->any())->method('getSeleniumDestination')->willReturn($destinationFolder);
     $this->seleniumOptions->expects($this->any())->method('getSeleniumDownloadUrl')->willReturn($downloadUrl);
     $this->httpClient->expects($this->any())->method('get')->with($downloadUrl, ['save_to' => $destination]);
     $this->downloader->download();
 }
 public function download()
 {
     $this->seleniumDownloader->download();
 }