For now, passing a non-function to mockable() yields this error:

call_user_func_array() expects parameter 1 to be a valid callback,   [warning]
function 'shell exec' not found or invalid function name
mockable.module:127

Whatever is returned thereafter is invalid. An exception might be better here.