IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Behat

Last modified: 10 August 2022

With IntelliJ IDEA, you can practice behaviour-driven development by running scenarios using the Behat framework. Currently IntelliJ IDEA supports integration with Behat 3 and Behat 2 versions.

Native support of Behat in IntelliJ IDEA includes:

  • Recognition of and coding assistance for feature scenario files and PHP scenario definition files.

  • Gherkin syntax support in feature files: Feature, Scenario, Given, When, Then, And, and But keywords.

  • Recognition of @given, @when, and @then annotations in definition files.

  • Setting correspondence between scenarios and their definitions through regular expressions in accordance with the PCRE standard for Behat 2.4 and PCRE+ for Behat 3.0. Turnip expressions are also welcome.