HumHub Documentation (unofficial)

CucumberKeywords extends ArrayKeywords
in package

Cucumber-translations reader.

$keywords = new Behat\Gherkin\Keywords\CucumberKeywords($i18nYmlPath);

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Table of Contents

Properties

$keywords  : mixed
$keywordString  : mixed
$language  : mixed

Methods

__construct()  : mixed
Initializes holder with yaml string OR file.
getAndKeywords()  : string
Returns And keywords (splitted by "|").
getBackgroundKeywords()  : string
Returns Background keywords (splitted by "|").
getButKeywords()  : string
Returns But keywords (splitted by "|").
getExamplesKeywords()  : string
Returns Examples keywords (splitted by "|").
getFeatureKeywords()  : string
Returns Feature keywords (splitted by "|").
getGivenKeywords()  : string
Returns Feature keywords (splitted by "|").
getOutlineKeywords()  : string
Returns Scenario Outline keywords (splitted by "|").
getScenarioKeywords()  : string
Returns Scenario keywords (splitted by "|").
getStepKeywords()  : string
Returns all step keywords (Given, When, Then, And, But).
getThenKeywords()  : string
Returns Then keywords (splitted by "|").
getWhenKeywords()  : string
Returns When keywords (splitted by "|").
setLanguage()  : mixed
Sets keywords holder language.
prepareStepString()  : string
Trim *| from the begining of the list.

Properties

Methods

__construct()

Initializes holder with yaml string OR file.

public __construct(string $yaml) : mixed
Parameters
$yaml : string

Yaml string or file path

getAndKeywords()

Returns And keywords (splitted by "|").

public getAndKeywords() : string
Return values
string

getBackgroundKeywords()

Returns Background keywords (splitted by "|").

public getBackgroundKeywords() : string
Return values
string

getButKeywords()

Returns But keywords (splitted by "|").

public getButKeywords() : string
Return values
string

getExamplesKeywords()

Returns Examples keywords (splitted by "|").

public getExamplesKeywords() : string
Return values
string

getFeatureKeywords()

Returns Feature keywords (splitted by "|").

public getFeatureKeywords() : string
Return values
string

getGivenKeywords()

Returns Feature keywords (splitted by "|").

public getGivenKeywords() : string
Return values
string

getOutlineKeywords()

Returns Scenario Outline keywords (splitted by "|").

public getOutlineKeywords() : string
Return values
string

getScenarioKeywords()

Returns Scenario keywords (splitted by "|").

public getScenarioKeywords() : string
Return values
string

getStepKeywords()

Returns all step keywords (Given, When, Then, And, But).

public getStepKeywords() : string
Return values
string

getThenKeywords()

Returns Then keywords (splitted by "|").

public getThenKeywords() : string
Return values
string

getWhenKeywords()

Returns When keywords (splitted by "|").

public getWhenKeywords() : string
Return values
string

setLanguage()

Sets keywords holder language.

public setLanguage(string $language) : mixed
Parameters
$language : string

Language name

prepareStepString()

Trim *| from the begining of the list.

private prepareStepString(string $keywordsString) : string
Parameters
$keywordsString : string

Keywords string

Return values
string

        
On this page

Search results