CucumberKeywords
extends ArrayKeywords
in package
Cucumber-translations reader.
$keywords = new Behat\Gherkin\Keywords\CucumberKeywords($i18nYmlPath);
Tags
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
$keywords
private
mixed
$keywords
= array()
$keywordString
private
mixed
$keywordString
= array()
$language
private
mixed
$language
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
stringgetBackgroundKeywords()
Returns Background keywords (splitted by "|").
public
getBackgroundKeywords() : string
Return values
stringgetButKeywords()
Returns But keywords (splitted by "|").
public
getButKeywords() : string
Return values
stringgetExamplesKeywords()
Returns Examples keywords (splitted by "|").
public
getExamplesKeywords() : string
Return values
stringgetFeatureKeywords()
Returns Feature keywords (splitted by "|").
public
getFeatureKeywords() : string
Return values
stringgetGivenKeywords()
Returns Feature keywords (splitted by "|").
public
getGivenKeywords() : string
Return values
stringgetOutlineKeywords()
Returns Scenario Outline keywords (splitted by "|").
public
getOutlineKeywords() : string
Return values
stringgetScenarioKeywords()
Returns Scenario keywords (splitted by "|").
public
getScenarioKeywords() : string
Return values
stringgetStepKeywords()
Returns all step keywords (Given, When, Then, And, But).
public
getStepKeywords() : string
Return values
stringgetThenKeywords()
Returns Then keywords (splitted by "|").
public
getThenKeywords() : string
Return values
stringgetWhenKeywords()
Returns When keywords (splitted by "|").
public
getWhenKeywords() : string
Return values
stringsetLanguage()
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