HumHub Documentation (unofficial)

ScenarioNode
in package
implements ScenarioInterface

Represents Gherkin Scenario.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Table of Contents

Interfaces

ScenarioInterface
Gherkin scenario interface.

Properties

$keyword  : string
$line  : int
$steps  : array<string|int, StepNode>
$tags  : array<string|int, mixed>
$title  : string

Methods

__construct()  : mixed
Initializes scenario.
getKeyword()  : string
Returns scenario keyword.
getLine()  : int
Returns scenario declaration line number.
getNodeType()  : string
Returns node type string
getSteps()  : array<string|int, StepNode>
Returns scenario steps.
getTags()  : array<string|int, mixed>
Returns scenario tags (including inherited from feature).
getTitle()  : null|string
Returns scenario title.
hasSteps()  : bool
Checks if scenario has steps.
hasTag()  : bool
Checks if scenario is tagged with tag.
hasTags()  : bool
Checks if scenario has tags (both inherited from feature and own).

Properties

Methods

__construct()

Initializes scenario.

public __construct(null|string $title, array<string|int, mixed> $tags, array<string|int, StepNode$steps, string $keyword, int $line) : mixed
Parameters
$title : null|string
$tags : array<string|int, mixed>
$steps : array<string|int, StepNode>
$keyword : string
$line : int

getKeyword()

Returns scenario keyword.

public getKeyword() : string
Return values
string

getLine()

Returns scenario declaration line number.

public getLine() : int
Return values
int

getNodeType()

Returns node type string

public getNodeType() : string
Return values
string

getTags()

Returns scenario tags (including inherited from feature).

public getTags() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTitle()

Returns scenario title.

public getTitle() : null|string
Return values
null|string

hasSteps()

Checks if scenario has steps.

public hasSteps() : bool
Return values
bool

hasTag()

Checks if scenario is tagged with tag.

public hasTag(string $tag) : bool
Parameters
$tag : string
Return values
bool

hasTags()

Checks if scenario has tags (both inherited from feature and own).

public hasTags() : bool
Return values
bool

        
On this page

Search results