Example #1
0
 function it_should_execute_the_database_dump_command(Database $database, ShellProcessor $shellProcessor)
 {
     $database->getDumpCommandLine('path')->willReturn('dump path');
     $shellProcessor->process('dump path')->shouldBeCalled();
     $this->beConstructedWith($database, 'path', $shellProcessor);
     $this->execute();
 }
Example #2
0
 /**
  * @throws \BigName\BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->database->getDumpCommandLine($this->outputPath));
 }