Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
tool_generator\local\testscenario\runner Class Reference

Public Member Functions

 execute (parsedfeature $parsedfeature)
 Execute a parsed feature.
 
 get_valid_steps ()
 Get all valid steps.
 
 include_behat_libraries ()
 Include all necessary behat libraries.
 
 include_composer_libraries ()
 Include composer autload.
 
 init ()
 Initi all composer, behat libraries and load the valid steps.
 
 parse_cleanup (string $content)
 Parse a feature file using only the scenarios with cleanup tag.
 
 parse_feature (string $content)
 Parse a feature file.
 

Member Function Documentation

◆ execute()

tool_generator\local\testscenario\runner::execute ( parsedfeature $parsedfeature)

Execute a parsed feature.

Parameters
parsedfeature$parsedfeaturethe parsed feature to execute.
Return values
booltrue if all steps were executed successfully.

◆ get_valid_steps()

tool_generator\local\testscenario\runner::get_valid_steps ( )

Get all valid steps.

Return values
arraythe valid steps.

◆ parse_cleanup()

tool_generator\local\testscenario\runner::parse_cleanup ( string $content)

Parse a feature file using only the scenarios with cleanup tag.

Parameters
string$contentthe feature file content.
Return values
parsedfeature

◆ parse_feature()

tool_generator\local\testscenario\runner::parse_feature ( string $content)

Parse a feature file.

Parameters
string$contentthe feature file content.
Return values
parsedfeature

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