Skip to content

Demonstrate first-class PHP configuration (core PR #6946)#66

Draft
TavoNiievez wants to merge 1 commit into
8.1from
8.1-php-config
Draft

Demonstrate first-class PHP configuration (core PR #6946)#66
TavoNiievez wants to merge 1 commit into
8.1from
8.1-php-config

Conversation

@TavoNiievez

@TavoNiievez TavoNiievez commented Jul 8, 2026

Copy link
Copy Markdown
Member

Changes

  • Delete codeception.yml and tests/Functional.suite.yml.

  • Add their PHP equivalents:

    codeception.php

    return GlobalConfig::create()
        ->namespace('App\Tests')
        ->supportNamespace('Support')
        ->paths(tests: 'tests', output: 'tests/_output', data: 'tests/Support/Data', support: 'tests/Support', envs: 'tests/_envs')
        ->actorSuffix('Tester')
        ->extension(RunFailed::class)
        ->params('.env', '.env.test')
        ->settings(shuffle: true, colors: true, reportUselessTests: true);

    tests/Functional.suite.php

    return SuiteConfig::create()
        ->actor('FunctionalTester')
        ->module('Asserts')
        ->module('Symfony', ['app_path' => 'src', 'environment' => 'test'])
        ->module('Doctrine', ['cleanup' => true], depends: 'Symfony');
  • composer.json — link the core to the php_config branch (that is where the builders live):

    "repositories": [
        { "type": "vcs", "url": "https://github.com/Codeception/Codeception.git" }
    ],
    "require-dev": {
        "codeception/codeception": "dev-php_config as 5.3.x-dev"
    }

    The inline alias keeps module-doctrine (^5.1) and the module-asserts (< 5.0) constraints
    satisfied. composer.lock is refreshed and pins the branch commit so CI's composer install works.

  • CI (.github/workflows/symfony.yml) — also triggers on 8.1-php-config.

Replace the YAML Codeception config with the new PHP config format and
link codeception/codeception to the php_config branch (PR #6946) so the
GlobalConfig / SuiteConfig builders are available.

- Delete codeception.yml and tests/Functional.suite.yml
- Add codeception.php and tests/Functional.suite.php (equivalent config)
- composer: add a VCS repo for Codeception/Codeception and require
  "dev-php_config as 5.3.x-dev"; refresh composer.lock accordingly
- CI: also trigger on the 8.1-php-config branch

Illustrative / draft only: do not merge until PR #6946 lands, after which
the composer link must revert to a stable codeception/codeception release.

Verified: config:validate loads the .php config, and the Functional suite
passes (138 tests, 258 assertions) against the php_config core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant