Beispiel #1
0
 /**
  * @test
  */
 public function downloadExistingPage()
 {
     $this->wgetCommand->setOutputFile(Files::concatenatePaths(array($this->workingDirectory, 'wget.log')))->setDirectoryPrefix($this->workingDirectory)->setNoVerbose(true)->setServerResponse(true)->setUrl('http://localhost/')->execute();
     $log = $this->wgetLogParser->parseLog($this->wgetCommand);
     $this->assertFalse($log->hasErrors());
     $this->assertFileExists(Files::concatenatePaths(array($this->workingDirectory, 'index.html')));
 }