Behat


Behat\Behat\Tester\ScenarioTester
Behat/Behat/Tester/ScenarioTester.php at line 31

Class ScenarioTester

ScenarioTester
All Known Subclasses:
OutlineTester

public class ScenarioTester

Scenario Tester.

Author:
Konstantin Kudryashov

Constructor Summary
void

__construct(ContainerInterface container)

Initializes tester.

Method Summary
void

setSkip(Boolean skip)

Sets tester to dry-run mode.

integer

visit(AbstractNode scenario)

Visits & tests ScenarioNode.

protected integer

visitBackground(BackgroundNode background, ScenarioNode logicalParent, ContextInterface context)

Visits & tests BackgroundNode.

protected integer

visitStep(StepNode step, ScenarioNode logicalParent, ContextInterface context, array tokens, boolean skip)

Visits & tests StepNode.

Constructor Detail

Behat/Behat/Tester/ScenarioTester.php at line 43

__construct

public void __construct(ContainerInterface container)

Initializes tester.


Method Detail

Behat/Behat/Tester/ScenarioTester.php at line 55

setSkip

public void setSkip(Boolean skip)

Sets tester to dry-run mode.


Behat/Behat/Tester/ScenarioTester.php at line 67

visit

public integer visit(AbstractNode scenario)

Visits & tests ScenarioNode.


Behat/Behat/Tester/ScenarioTester.php at line 112

visitBackground

protected integer visitBackground(BackgroundNode background, ScenarioNode logicalParent, ContextInterface context)

Visits & tests BackgroundNode.

See Also:
BackgroundTester::visit()

Behat/Behat/Tester/ScenarioTester.php at line 135

visitStep

protected integer visitStep(StepNode step, ScenarioNode logicalParent, ContextInterface context, array tokens, boolean skip)

Visits & tests StepNode.

Parameters:
step - step instance
logicalParent - logical parent of the step
context - context instance
tokens - step replacements for tokens
skip - mark step as skipped?
See Also:
StepTester::visit()

Behat