When I have a Behat/Cucumber test description (i.e. a *.feature file containing Gherkin), PhpStorm colors all the lines containing steps (“Given”, “When” etc.). When I move the mouse over one of these lines, the tooltip says that it’s an undefined step reference.
So, obviously, PhpStorm seems to be able to recognize cross-references between the steps and the method annotations such as “@When”. But: how do I set this up? Or what filesystem layout would be necessary to enable PhpStorm to get this working?