Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250605) (9223e346c3e)
tool_generator\local\testscenario\steprunner Class Reference

Public Member Functions

 __construct ($unused, 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 ( $unused,
array $validsteps,
StepNode $stepnode )

Constructor.

Parameters
behat_base | null$unusedThis does nothing, do not use it.
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: