Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Renames a file or directory
<?php rename(string $from, string $to, ?resource $context = null): bool
<?php it('should be able to create a peck.json config file', function (): void {

    $configFilePath = __DIR__.'/../../peck.json';

    $backup = $configFilePath.'.backup';

    rename($configFilePath, $backup);



    $created = Config::init();

    $config = Config::instance();
<?php         ->and($config->whitelistedWords)->toBe(['php'])

        ->and($config->whitelistedPaths)->toBe([]);



    rename($backup, $configFilePath);

})->skip('rewrite this test a little bit differently without modifying the root level peck.json file');



it('should not recreate a file that already exists', function (): void {