Examples of how to control PHP global functions in test scenarios.