HumHub Documentation (unofficial)

ArrayKeywords
in package
implements KeywordsInterface

Array initializable keywords holder.

$keywords = new Behat\Gherkin\Keywords\ArrayKeywords(array( 'en' => array( 'feature' => 'Feature', 'background' => 'Background', 'scenario' => 'Scenario', 'scenario_outline' => 'Scenario Outline|Scenario Template', 'examples' => 'Examples|Scenarios', 'given' => 'Given', 'when' => 'When', 'then' => 'Then', 'and' => 'And', 'but' => 'But' ), 'ru' => array( 'feature' => 'Функционал', 'background' => 'Предыстория', 'scenario' => 'Сценарий', 'scenario_outline' => 'Структура сценария', 'examples' => 'Примеры', 'given' => 'Допустим', 'when' => 'Если', 'then' => 'То', 'and' => 'И', 'but' => 'Но' ) ));

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Table of Contents

Interfaces

KeywordsInterface
Keywords holder interface.

Properties

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

Methods

__construct()  : mixed
Initializes holder with keywords.
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 Given 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.

Properties

Methods

__construct()

Initializes holder with keywords.

public __construct(array<string|int, mixed> $keywords) : mixed
Parameters
$keywords : array<string|int, mixed>

Keywords array

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 Given 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


        
On this page

Search results