Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Parser
✓ use Behat\Gherkin\Parser;
Parse a Gherkin feature file into a Feature object.
use Behat\Gherkin\Parser;
use Behat\Gherkin\Lexer;
use Behat\Gherkin\Keywords\ArrayKeywords;
$keywords = new ArrayKeywords(['en' => ['feature' => 'Feature', 'scenario' => 'Scenario']]);
$lexer = new Lexer($keywords);
$parser = new Parser($lexer);
$feature = $parser->parse(file_get_contents('example.feature'));
Debug
Known issues
No known issues recorded.
Upgrade
Version history
4.17.0latest on Packagist
Audit
Dependencies
No dependency data recorded yet.