Execute
composer require --dev knplabs/friendly-contexts dev-master
Edit behat.yml
default:
# ...
suites:
default:
# ...
contexts:
- # ...
- Knp\FriendlyContexts\Context\MinkContext
- Knp\FriendlyContexts\Context\TableContext
- Knp\FriendlyContexts\Context\EntityContext
extensions:
# ...
Knp\FriendlyContexts\Extension: ~
###Kernel configuration
If you have some fancy kernel configuration, you can just set it like this (shown values are default
):
default:
# ...
extensions:
# ...
Knp\FriendlyContexts\Extension:
symfony_kernel:
bootstrap: app/autoload.php
path: app/AppKernel.php
class: AppKernel
env: test
debug: true