Skip to content

Add enums to the test suite #219

Description

@antecedent

Currently, Patchwork does not have a single enum in its tests. At the same time, PHP's enums function a lot like classes, including the ability to define their own methods. Given that Patchwork works mostly by altering PHP code before it reaches the compiler, and that some of those alterations depend on finding function/method definitions and classes in the code, it would make sense to have enums in the test suite.

See also this part of a previous discussion for the rationale here: #214 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions