Skip to content

Create abstract class Runtime_Check #9

@mehulkaklotar

Description

@mehulkaklotar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssues for the overall plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions