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)
Currently, Patchwork does not have a single
enumin its tests. At the same time, PHP'senums 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 haveenums in the test suite.See also this part of a previous discussion for the rationale here: #214 (comment)