Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: