This abstract class will be used to create concrete checks that perform runtime analysis. These checks will run elements of the plugin code on the server to test its behavior against an expected outcome.
Acceptance Criteria
- An abstract
Abstract_Runtime_Check class exists
- The
Abstract_Runtime_Check class implements the Check and Preparation interfaces
- The class contains an abstract
prepare method
- This method will return a
Callable which is the cleanup function for the preparations run
- This method can throw and
Exception when the preparation fails
- The class will contain an abstract
run method
- The method accepts a single
$results parameter, which is an instance of Check_Result
- The method can throw and
Exception on critical failure unrelated to check errors or warnings
- The method does not return anything
This abstract class will be used to create concrete checks that perform runtime analysis. These checks will run elements of the plugin code on the server to test its behavior against an expected outcome.
Acceptance Criteria
Abstract_Runtime_Checkclass existsAbstract_Runtime_Checkclass implements theCheckandPreparationinterfacespreparemethodCallablewhich is the cleanup function for the preparations runExceptionwhen the preparation failsrunmethod$resultsparameter, which is an instance ofCheck_ResultExceptionon critical failure unrelated to check errors or warnings