Skip to content

Support Behat 4 - #3

Merged
smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:sa/behat-4
Sep 8, 2026
Merged

smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:sa/behat-4

Conversation

@smnandre

@smnandre smnandre commented Sep 8, 2026

Copy link
Copy Markdown
Member

The code runs unchanged on Behat 4.0.0-alpha1. This PR makes CI prove it and
declares what the extension actually depends on.

  • tests/Fixtures/behat.php replaces behat.yml: Behat 4 drops YAML
    configuration, and the PHP form works on 3.x as well.
  • symfony/config, symfony/dependency-injection and
    symfony/event-dispatcher are declared (^5.4 || ^6.4 || ^7.0 || ^8.0)
    instead of relied on transitively.
  • CI matrix: PHP 8.2 with lowest dependencies, PHP 8.4 with Behat
    4.0.0-alpha1.

The Behat constraint stays ^3.23 until 4.0.0 stable ships.

The fixture configuration moves to behat.php, the only form Behat 4 accepts
and one that Behat 3 reads as well. The Symfony Config, DependencyInjection
and EventDispatcher components the extension calls directly are declared
instead of relied on transitively, with Symfony 8 allowed for Behat 4.
CI runs Behat 4.0.0-alpha1 and a lowest-dependencies job.
@smnandre smnandre added the enhancement New feature or request label Sep 8, 2026
@smnandre
smnandre merged commit d599967 into playwright-php:main Sep 8, 2026
7 checks passed
@smnandre
smnandre deleted the sa/behat-4 branch September 8, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant