From e3454e1359570f99a94a9601f47ebc7d3ac79efe Mon Sep 17 00:00:00 2001 From: Jean-Beru Date: Tue, 29 Sep 2026 17:13:46 +0200 Subject: [PATCH] Support Behat 4.0 Behat 4.0.0 is out. Allow it in composer.json and run CI against ^4.0 instead of 4.0.0-alpha1. No code change is needed: the Behat API the extension uses is unchanged in 4.0.0. Assisted-by: Claude:claude-opus-5-5 --- .github/workflows/CI.yml | 2 +- CHANGELOG.md | 5 +++++ README.md | 6 +++--- composer.json | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d79aaed..bf1327b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,7 +35,7 @@ jobs: behat: '^3.23' dependencies: 'lowest' - php: '8.4' - behat: '4.0.0-alpha1' + behat: '^4.0' dependencies: 'highest' steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index e358543..3a7b32f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## [Unreleased] + +- Support Behat 4.0 stable: `behat/behat` now allows `^3.23 || ^4.0`, and CI runs + against the latest Behat 4.x instead of 4.0.0-alpha1. + ## [0.7.0] - 2026-09-08 First release. A Behat extension that runs scenarios in a Playwright-controlled diff --git a/README.md b/README.md index d5a69c4..59e148f 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ it keeps the Mink API and swaps the driver. ## Installation -The extension requires PHP 8.2 or later, Behat 3.23 or later, and Playwright -PHP 1.4 or later. +The extension requires PHP 8.2 or later, Behat 3.23 or later (including 4.x), +and Playwright PHP 1.4 or later. ```bash composer require --dev playwright-php/playwright-behat @@ -153,7 +153,7 @@ vendor/bin/phpunit The suite includes a real `behat` run against `tests/Fixtures`, including a failing scenario that must leave a screenshot. Repository CI runs it on PHP 8.2, 8.3 and 8.4 against the latest Behat 3.x, plus one job on the lowest -supported dependencies and one on Behat 4.0.0-alpha1. +supported dependencies and one on the latest Behat 4.x. ## License diff --git a/composer.json b/composer.json index 47511b8..bed3a47 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "homepage": "https://playwright-php.dev/behat", "require": { "php": "^8.2", - "behat/behat": "^3.23", + "behat/behat": "^3.23 || ^4.0", "playwright-php/playwright": "^1.4", "symfony/config": "^5.4 || ^6.4 || ^7.0 || ^8.0", "symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0 || ^8.0",