function it_should_execute_the_compression_command(Compressor $compressor, ShellProcessor $shellProcessor)
 {
     $compressor->getCompressCommandLine('path')->willReturn('compress path');
     $shellProcessor->process('compress path')->shouldBeCalled();
     $this->beConstructedWith($compressor, 'path', $shellProcessor);
     $this->execute();
 }
Example #2
0
 /**
  * @throws \BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->compressor->getCompressCommandLine($this->sourcePath));
 }