Behat TokensExtension provides a way for step text and arguments to contain replacement tokens that will be replaced with some context values before step definitions are processed
curl -sS https://getcomposer.org/installer | php
vim composer.json
{
"require": {
"behat/tokens-extension": "dev-master"
},
"config": {
"bin-dir": "bin"
}
}
composer install
- Enable
TokensExtension
in behat.yml:
default:
extensions:
Behat\TokensExtension: ~
Please refer to docs here
composer update --dev
./vendor/bin/behat
Feel free to provide feedback in issue queue and contributions are much welcome.
Thanks to FFW Agency for supporting this contribution.