• File: DecompressFileSpec.php
  • Full Path: /var/www/crm_set/modules/backup/vendor/backup-manager/backup-manager/spec/Tasks/Compression/DecompressFileSpec.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 881 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace spec\BackupManager\Tasks\Compression;

use BackupManager\Compressors\Compressor;
use BackupManager\ShellProcessing\ShellProcessor;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class DecompressFileSpec extends ObjectBehavior {

    function it_is_initializable(Compressor $compressor, ShellProcessor $shellProcessor) {
        $this->beConstructedWith($compressor, 'path', $shellProcessor);
        $this->shouldHaveType('BackupManager\Tasks\Compression\DecompressFile');
    }

    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();
    }
}