Пример #1
0
 function it_should_execute_the_decompression_command(Compressor $compressor, ShellProcessor $shellProcessor)
 {
     $compressor->getDecompressCommandLine('path')->willReturn('decompress path');
     $shellProcessor->process('decompress path')->shouldBeCalled();
     $this->beConstructedWith($compressor, 'path', $shellProcessor);
     $this->execute();
 }
Пример #2
0
 /**
  * @throws \BigName\BackupManager\ShellProcessing\ShellProcessFailed
  */
 public function execute()
 {
     return $this->shellProcessor->process($this->compressor->getCompressCommandLine($this->sourcePath));
 }