Behat is a BDD framework.

Phpactor can provide goto definition and some completion support within feature files.


The extension must be via. behat.enabled:

$ phpactor config:set behat.enabled true

Symfony Integration

If you are using Syfmony and dependency injection to manage your contexts you can specify the path to the XML debug file in behat.symfony.di_xml_path:

For example:

$ phpactor config:set behat.symfony.di_xml_path "var/cache/test/App_KernelTestDebugContainer.xml"

Language Server Support

This extension acts on cucumber files, you will need to configure your _client_ to ensure that it will call Phpactor when in the feature files.

    -- ...
    filetypes = { 'php', 'cucumber' },