コード例 #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();
 }
コード例 #2
0
ファイル: DumpDatabase.php プロジェクト: parabol/laravel-cms
 /**
  * @throws \BigName\BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->database->getDumpCommandLine($this->outputPath));
 }