Mock out calls to built-in PHP functions.