Files
friends-of-behat-mink-exten…/composer.json
Kamil Kokot 47a9d45cd1 Add PHP CS Fixer and PHPStan max to CI; remove abandoned GoutteFactory
- Add friendsofphp/php-cs-fixer ^3.75 and phpstan/phpstan ^2.0 to
  require-dev; add .php-cs-fixer.dist.php (@Symfony ruleset with
  phpdoc_to_comment ignored_tags) and phpstan.neon (level max,
  treatPhpDocTypesAsCertain: false)
- Run CS Fixer and PHPStan in every CI matrix job alongside tests
- Add composer scripts: cs, cs-check, phpstan
- Add .php-cs-fixer.cache to .gitignore
- Fix all PHPStan max violations across src/: add return/param types,
  narrow mixed config values with is_string()/is_array() guards,
  use TaggedNodeInterface for scenario tag access in SessionsListener
- Remove GoutteFactory and its spec — the goutte driver and its
  underlying client library are abandoned

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-06-12 17:43:01 +02:00

60 lines
1.6 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",
"friendsofphp/php-cs-fixer": "^3.75",
"phpstan/phpstan": "^2.0"
},
"replace": {
"behat/mink-extension": "self.version"
},
"autoload": {
"psr-0": {
"Behat\\MinkExtension": "src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"scripts": {
"cs": "vendor/bin/php-cs-fixer fix",
"cs-check": "vendor/bin/php-cs-fixer fix --dry-run",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=512M",
"test": [
"vendor/bin/phpspec run -f pretty",
"vendor/bin/behat --config behat.dist.php -fprogress --strict"
]
}
}