Is there any way to reset all static properties of a particular class?

Viewed 5134

Static properties make testing hard as you probably know. Is there no way to reset all static properties of a particular class back to their initial state? Ideally this would not require custom code for each class, but could be used in a general way by inheritance, or from outside of the class completely.

Please do not reply with something like, "don't use static properties". Thanks.

3 Answers
Related