ScenarioNode
in package
implements
ScenarioInterface
Represents Gherkin Scenario.
Tags
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
$keyword
private
string
$keyword
$line
private
int
$line
$steps
private
array<string|int, StepNode>
$steps
= array()
$tags
private
array<string|int, mixed>
$tags
= array()
$title
private
string
$title
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
stringgetLine()
Returns scenario declaration line number.
public
getLine() : int
Return values
intgetNodeType()
Returns node type string
public
getNodeType() : string
Return values
stringgetSteps()
Returns scenario steps.
public
getSteps() : array<string|int, StepNode>
Return values
array<string|int, StepNode>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|stringhasSteps()
Checks if scenario has steps.
public
hasSteps() : bool
Return values
boolhasTag()
Checks if scenario is tagged with tag.
public
hasTag(string $tag) : bool
Parameters
- $tag : string
Return values
boolhasTags()
Checks if scenario has tags (both inherited from feature and own).
public
hasTags() : bool