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(); }
/** * @throws \BackupManager\ShellProcessing\ShellProcessFailed */ public function execute() { return $this->shellProcessor->process($this->compressor->getDecompressCommandLine($this->sourcePath)); }