Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
tool_generator\local\testscenario\steprunner Class Reference

Public Member Functions

 __construct (behat_data_generators $generator, array $validsteps, StepNode $stepnode)
 Constructor.
 
 execute ()
 Execute the step.
 
 get_arguments_string ()
 Return the step arguments as string.
 
 get_error ()
 Return the step error message.
 
 get_text ()
 Return the step text.
 
 is_executed ()
 Return if the step has been executed.
 
 is_valid ()
 Return if the step is valid.
 

Constructor & Destructor Documentation

◆ __construct()

tool_generator\local\testscenario\steprunner::__construct ( behat_data_generators $generator,
array $validsteps,
StepNode $stepnode )

Constructor.

Parameters
behat_data_generators$generatorthe behat data generator instance.
array$validstepsthe valid steps indexed by given expression tag.
StepNode$stepnodethe step node to process.

Member Function Documentation

◆ execute()

tool_generator\local\testscenario\steprunner::execute ( )

Execute the step.

Return values
boolif the step is executed or not.

◆ get_arguments_string()

tool_generator\local\testscenario\steprunner::get_arguments_string ( )

Return the step arguments as string.

Return values
string

◆ get_error()

tool_generator\local\testscenario\steprunner::get_error ( )

Return the step error message.

Return values
string

◆ get_text()

tool_generator\local\testscenario\steprunner::get_text ( )

Return the step text.

Return values
string

◆ is_executed()

tool_generator\local\testscenario\steprunner::is_executed ( )

Return if the step has been executed.

Return values
bool

◆ is_valid()

tool_generator\local\testscenario\steprunner::is_valid ( )

Return if the step is valid.

Return values
bool

The documentation for this class was generated from the following file: