Description
The Check Runner interface will be implemented by the specific context runner classes like AJAX runner or CLI runner. This interface will have access to the Checks class and its methods to run checks. The interface will have a run method that will be the responsibility of classes to implement to start the runner according to their context.
Acceptance Criteria
- A new
Check_Runner interface is created and exists at includes/Checker.
- The
Check_Runner interface contains a public is_plugin_check() method.
- The
is_plugin_check method will return a boolean.
- The method will be used to determine if the current request is intended for the plugin checker.
- The
Check_Runner interface contains a public prepare() method.
- The
prepare() method will be used to run any universal preparations depending on the checks requested.
- The
Check_Runner interface contains a public run() method.
- The
run method returns an instance of the Check_Results class.
- The method will run the requested checks against the plugin context and return the results.
Description
The Check Runner interface will be implemented by the specific context runner classes like AJAX runner or CLI runner. This interface will have access to the Checks class and its methods to run checks. The interface will have a
runmethod that will be the responsibility of classes to implement to start the runner according to their context.Acceptance Criteria
Check_Runnerinterface is created and exists atincludes/Checker.Check_Runnerinterface contains a publicis_plugin_check()method.is_plugin_checkmethod will return a boolean.Check_Runnerinterface contains a publicprepare()method.prepare()method will be used to run any universal preparations depending on the checks requested.Check_Runnerinterface contains a publicrun()method.runmethod returns an instance of theCheck_Resultsclass.