/**
  * @return void
  */
 private function runBrowser()
 {
     if (is_null($this->browserCommand)) {
         return;
     }
     $browserProcess = $this->processFactory->createBrowserProcess($this->browserCommand, $this->workingDirectory);
     $this->processes[] = $browserProcess;
     $browserProcess->start();
 }
 function it_does_not_run_browser_when_browser_binary_is_not_set(Filesystem $filesystem, ProcessFactory $processFactory, Process $webServerProcess, Process $browserProcess)
 {
     $processFactory->createWebServerProcess(Argument::any(), Argument::any(), Argument::any())->willReturn($webServerProcess);
     $processFactory->createBrowserProcess(Argument::any(), Argument::any())->willReturn($browserProcess);
     $this->beConstructedWith(null, $filesystem, $processFactory);
     $webServerProcess->start()->shouldBeCalled();
     $browserProcess->start()->shouldNotBeCalled();
     $this->createWorkingDirectory();
     $this->iHaveAWebServerRunningOnAddressAndPort(Argument::any(), Argument::any());
 }