A mocking class utility for WordPress hooks