HumHub Documentation (unofficial)

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

supports()

Checks if current loader supports provided resource.

public supports(mixed $resource) : bool
Parameters
$resource : mixed

Resource to load

Return values
bool

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>

getTags()

private static getTags(array<string|int, mixed> $json) : array<string|int, string>
Parameters
$json : array<string|int, mixed>
Return values
array<string|int, string>

        
On this page

Search results