A php function mocker.