Kamil Kokot a1355134df Add behat-version matrix dimension, fix Behat 4 type errors, unify config
CI matrix now has a behat-version dimension (stable / 4.x-dev) so both
Behat 3.31 and Behat 4 are tested explicitly. Symfony 8.x rows always
use Behat 4; Symfony 7.4 rows test both versions.

behat.dist.php works with Behat 3.31 too (Behat\Config\Config exists as
a bridge since 3.31), so drop behat.yml.dist and always use the PHP
config — removes the if/else branch from CI and unifies local dev too.

SessionsListener: fix type hint on prepareDefaultMinkSession from
ScenarioLikeTested to ScenarioTested — the method uses getSuite() which
is on LifecycleEvent (not ScenarioLikeTested), and the dispatched events
are ScenarioTested subclasses. Also remove now-unused ScenarioLikeTested
import.

ServiceContainer/MinkExtension: add missing return types (: string,
: void) to all interface method overrides to satisfy Behat 4's stricter
interface signatures.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-06-12 17:15:15 +02:00
2012-05-06 21:13:51 +02:00
2012-05-06 21:53:36 +02:00
2022-07-01 12:40:00 +03:00

This is the fork of MinkExtension library that supports PHP >=7.4 and supports Symfony >=4.4.

For the documentation, please refer to the original repository.

No updates other than Symfony compatibility will be provided, but this fork might be synchronised with the original repository in the future.

Description
Fork of FriendsOfBehat MinkExtension with Behat 4 / Symfony 8 compatibility work
Readme MIT 603 KiB
Languages
PHP 99.4%
Gherkin 0.6%