HumHub Documentation (unofficial)

GherkinFileLoader extends AbstractFileLoader
in package

Gherkin *.feature files loader.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Table of Contents

Properties

$basePath  : mixed
$cache  : mixed
$parser  : mixed

Methods

__construct()  : mixed
Initializes loader.
load()  : array<string|int, FeatureNode>
Loads features from provided resource.
setBasePath()  : mixed
Sets base features path.
setCache()  : mixed
Sets cache layer.
supports()  : bool
Checks if current loader supports provided resource.
findAbsolutePath()  : string
Finds absolute path for provided relative (relative to base features path).
findRelativePath()  : string
Finds relative path for provided absolute (relative to base features path).
parseFeature()  : FeatureNode
Parses feature at provided absolute path.

Properties

Methods

load()

Loads features from provided resource.

public load(string $path) : array<string|int, FeatureNode>
Parameters
$path : string

Resource to load

Return values
array<string|int, FeatureNode>

setBasePath()

Sets base features path.

public setBasePath(string $path) : mixed
Parameters
$path : string

Base loader path

supports()

Checks if current loader supports provided resource.

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

Resource to load

Return values
bool

findAbsolutePath()

Finds absolute path for provided relative (relative to base features path).

protected findAbsolutePath(string $path) : string
Parameters
$path : string

Relative path

Return values
string

findRelativePath()

Finds relative path for provided absolute (relative to base features path).

protected findRelativePath(string $path) : string
Parameters
$path : string

Absolute path

Return values
string

        
On this page

Search results