Skip to content

v1.0.0 - Behat 4 compatibility

Latest

Choose a tag to compare

@vitormattos vitormattos released this 05 Nov 17:22
d1b5b25

Behat 4 compatibility

This is the first major release of libresign/behat-builtin-extension and introduces a breaking migration from Behat 3 to Behat 4.

Changes

  • Require PHP >= 8.2 and Behat ^4.0 as a runtime dependency; Behat 3 is no longer supported.
  • Replace the legacy behat.yml configuration with the Behat 4 behat.php configuration API.
  • Update event subscriptions and extension integration to Behat 4's public interfaces.
  • Use supported Symfony Console APIs rather than internal Behat CLI services.
  • Retain PHP built-in server lifecycle behavior, dynamic port allocation, worker cleanup, and failure diagnostics.
  • Cover successful HTTP requests, invalid server roots, process failures and worker behavior in tests.

Upgrade notes

Update your Behat configuration from YAML to PHP using Behat\Config\Config, Behat\Config\Profile, and Behat\Config\Extension with PhpBuiltin\Server.

The new release can be requested with:

composer require 'libresign/behat-builtin-extension:^1.0'

Projects depending on ^0.7 must update their Composer version constraints before installing v1.0.0.

Validation

PR #81 passed the Behat, PHPUnit, Lint, Psalm and REUSE workflows, including PHP 8.2, 8.3, 8.4 and 8.5 and the Xdebug/APCu integration scenario.

Related: #78; PR #81.