Проблемы с Behat и Symfony2?

У меня возникли проблемы с процессом Behat (2.4.*@dev) init в пакете Symfony2 (версия 2.2.2). После команды:

bin/behat --init "@CompanyAppBundle" 

Каталоги behad создаются внутри корневого каталога приложения, а не в комплекте. Выход:

 +d features - place your *.feature files here +d features/bootstrap - place bootstrap scripts and static files here +f features/bootstrap/FeatureContext.php - place your feature related code here 

В чем проблема?

Не уверен в Behat v2.4, но для Behat v3.0 добавьте пакет в директиву 'suites' от behat.yml:

 # behat.yml default: suites: company_app_suite: type: symfony_bundle bundle: CompanyAppBundle extensions: Behat\Symfony2Extension: ~ 

Либо Behat не может найти вашу конфигурацию, попробуйте указать ее так:

 bin/behat -c alternative/location/to/behat.yml --init "@CompanyAppBundle" 

Или вы не включили Symfony2Extension в своей (по умолчанию) конфигурации, попробуйте указать его так:

 default: extensions: Behat\Symfony2Extension\Extension: