Files
friends-of-behat-mink-exten…/composer.json
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

55 lines
1.3 KiB
JSON

{
"name": "friends-of-behat/mink-extension",
"description": "Mink extension for Behat",
"license": "MIT",
"type": "behat-extension",
"keywords": [
"web",
"test",
"browser",
"gui"
],
"authors": [
{
"name": "Konstantin Kudryashov",
"email": "ever.zet@gmail.com"
},
{
"name": "Christophe Coevoet",
"email": "stof@notk.org"
}
],
"homepage": "https://github.com/FriendsOfBehat/MinkExtension#readme",
"require": {
"php": "^8.3",
"behat/behat": "^3.31",
"behat/mink": "^1.5",
"symfony/config": "^7.4 || ^8.0"
},
"require-dev": {
"behat/mink-browserkit-driver": "^2.0",
"phpspec/phpspec": "^8.0",
"symfony/browser-kit": "^7.4 || ^8.0",
"symfony/http-client": "^7.4 || ^8.0"
},
"replace": {
"behat/mink-extension": "self.version"
},
"autoload": {
"psr-0": {
"Behat\\MinkExtension": "src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"scripts": {
"test": [
"vendor/bin/phpspec run -f pretty",
"vendor/bin/behat --config behat.dist.php -fprogress --strict"
]
}
}