FlexMigrator example


    public function testCleanup(): void
    {
        $tmpDir = sys_get_temp_dir() . '/flex-migrator-test';
        $fs = new Filesystem();
        $fs->mkdir($tmpDir);

        $fs->touch($tmpDir . '/Dockerfile');
        $fs->mkdir($tmpDir . '/.github/workflows');
        $fs->touch($tmpDir . '/.github/workflows/build.yml');

        $flexMigrator = new FlexMigrator();

        $flexMigrator->cleanup($tmpDir);

        static::assertFileDoesNotExist($tmpDir . '/Dockerfile');
        static::assertFileDoesNotExist($tmpDir . '/.github/workflows/build.yml');

        $fs->remove($tmpDir);
    }

    public function testCopyTemplateFiles(): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.