CucumberNDJsonAstLoader
in package
implements
LoaderInterface
Loads a feature from cucumber's protobuf JSON format
Table of Contents
Interfaces
- LoaderInterface
- Loader interface.
Methods
- load() : array<string|int, FeatureNode>
- Loads features from provided resource.
- supports() : bool
- Checks if current loader supports provided resource.
- getBackground() : BackgroundNode|null
- getFeature() : FeatureNode|null
- getScenarios() : array<string|int, ScenarioInterface>
- getSteps() : array<string|int, StepNode>
- getTables() : array<string|int, ExampleTableNode>
- getTags() : array<string|int, string>
Methods
load()
Loads features from provided resource.
public
load(mixed $resource) : array<string|int, FeatureNode>
Parameters
- $resource : mixed
-
Resource to load
Return values
array<string|int, FeatureNode>supports()
Checks if current loader supports provided resource.
public
supports(mixed $resource) : bool
Parameters
- $resource : mixed
-
Resource to load
Return values
boolgetBackground()
private
static getBackground(array<string|int, mixed> $json) : BackgroundNode|null
Parameters
- $json : array<string|int, mixed>
Return values
BackgroundNode|nullgetFeature()
private
static getFeature(array<string|int, mixed> $json, mixed $filePath) : FeatureNode|null
Parameters
- $json : array<string|int, mixed>
- $filePath : mixed
Return values
FeatureNode|nullgetScenarios()
private
static getScenarios(array<string|int, mixed> $json) : array<string|int, ScenarioInterface>
Parameters
- $json : array<string|int, mixed>
Return values
array<string|int, ScenarioInterface>getSteps()
private
static getSteps(array<string|int, mixed> $json) : array<string|int, StepNode>
Parameters
- $json : array<string|int, mixed>
Return values
array<string|int, StepNode>getTables()
private
static getTables(array<string|int, mixed> $json) : array<string|int, ExampleTableNode>
Parameters
- $json : array<string|int, mixed>
Return values
array<string|int, ExampleTableNode>getTags()
private
static getTags(array<string|int, mixed> $json) : array<string|int, string>
Parameters
- $json : array<string|int, mixed>