Behat


Behat\Behat\Tester\StepTester
Behat/Behat/Tester/StepTester.php at line 34

Class StepTester

StepTester

public class StepTester

Step Tester.

Author:
Konstantin Kudryashov

Constructor Summary
void

__construct(ContainerInterface container)

Initializes tester.

Method Summary
void

setLogicalParent(ScenarioNode parent)

Sets logical parent of the step, which is always a ScenarioNode.

void

setContext(ContextInterface context)

Sets run context.

void

skip(Boolean skip)

Marks test as skipped.

integer

visit(AbstractNode step)

Visits & tests StepNode.

protected StepEvent

executeStep(StepNode step)

Searches and runs provided step with DefinitionDispatcher.

protected void

executeStepDefinition(StepNode step, DefinitionInterface definition)

Executes provided step definition.

Constructor Detail

Behat/Behat/Tester/StepTester.php at line 47

__construct

public void __construct(ContainerInterface container)

Initializes tester.


Method Detail

Behat/Behat/Tester/StepTester.php at line 58

setLogicalParent

public void setLogicalParent(ScenarioNode parent)

Sets logical parent of the step, which is always a ScenarioNode.


Behat/Behat/Tester/StepTester.php at line 68

setContext

public void setContext(ContextInterface context)

Sets run context.


Behat/Behat/Tester/StepTester.php at line 78

skip

public void skip(Boolean skip)

Marks test as skipped.

Parameters:
skip - skip test?

Behat/Behat/Tester/StepTester.php at line 90

visit

public integer visit(AbstractNode step)

Visits & tests StepNode.


Behat/Behat/Tester/StepTester.php at line 108

executeStep

protected StepEvent executeStep(StepNode step)

Searches and runs provided step with DefinitionDispatcher.

Parameters:
step - step node

Behat/Behat/Tester/StepTester.php at line 155

executeStepDefinition

protected void executeStepDefinition(StepNode step, DefinitionInterface definition)

Executes provided step definition.

Parameters:
step - step node
definition - step definition

Behat