-
Notifications
You must be signed in to change notification settings - Fork 126
Create Preparation interface #16
Copy link
Copy link
Closed
Labels
InfrastructureIssues for the overall plugin infrastructureIssues for the overall plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
InfrastructureIssues for the overall plugin infrastructureIssues for the overall plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature
Preparations are setup steps that should run ahead of checks. This will allow any setup work required before a check can be run to take place. Each preparation will handle the logic required to prepare the environment for the checks and return a clean up function to be run after the checks are complete.
To provide a consistent API across the infrastructure, a Preparation interface will be created. This will define a single prepare method that any class should use to define the setup logic required.
Acceptance Criteria
Preparationinterface exists inincludes/Checker/Preparation.phpPreparationinterface contains a single publicprepare()methodprepare()method accepts no parametersExceptionwill be thrown if theprepare()method failsprepare()method returns a closure