Registry / testing / behat-gherkin

behat-gherkin

JSON →
library4.17.0phppackagistunverified

Gherkin DSL parser for PHP.

composer require behat/gherkin
INSTALL
IMPORT
SIG · BEHAT-GHERKIN
B
behat-gherkin
testingphpv4.17.0
harness data pending
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.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
behat-gherkin — pip install behat-gherkin · libregistry