Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Copies file
<?php copy(string $from, string $to, ?resource $context = null): bool
<?php             mkdir($backupDir, 0777, true);

        }



        copy($file, $backupPath);

    }
<?php     {

        $container = $this->container;

        $size = filesize($fixture = __DIR__.'/__fixtures__/container/a.txt');

        copy($fixture, Storage::disk('test')->getAdapter()->getPathPrefix().'test.txt');



        $asset = (new Asset)

            ->container($this->container)
<?php         parent::setUp();



        (new Process(['tar', '-xzvf', 'vendor.tar.gz'], $this->basePath()))->mustRun();

        copy($this->basePath('composer.json'), $this->basePath('composer.json.bak'));

        copy($this->basePath('composer.lock'), $this->basePath('composer.lock.bak'));

        Cache::forget('composer.test/package');
<?php         (new Process(['tar', '-xzvf', 'vendor.tar.gz'], $this->basePath()))->mustRun();

        copy($this->basePath('composer.json'), $this->basePath('composer.json.bak'));

        copy($this->basePath('composer.lock'), $this->basePath('composer.lock.bak'));

        Cache::forget('composer.test/package');



        Composer::swap(new \Statamic\Console\Processes\Composer($this->basePath()));