Parsing Step Text

Learn and practice how to parse step text using the Gherkin parser class.

We'll cover the following

Parsing step text

Each Gherkin step begins with a step keyword followed by some text:

When the Maker starts a game

Our strategy for parsing this will be very similar to our process for parsing the names of features. We can do this using the following PHP method:

Get hands-on with 1400+ tech skills courses.