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(); }
/** * @throws \BackupManager\ShellProcessing\ShellProcessFailed */ public function execute() { return $this->shellProcessor->process($this->database->getDumpCommandLine($this->outputPath)); }
/** * @throws \BackupManager\ShellProcessing\ShellProcessFailed */ public function execute() { return $this->shellProcessor->process($this->database->getRestoreCommandLine($this->inputPath)); }