function registerMockGlobals(mockObject, mockClass) {
  var mockProxy = mockObject.proxy();
  for (var func in mockClass.prototype) {
    if (typeof mockClass.prototype[func] === 'function')
      registerMockGlobal(func, mockProxy, mockProxy[func]);
  }
}
/**
 * Register all methods of {@code mockClass.prototype} as overrides to global
 * functions of the same name as the method, using the proxy of the
 * |mockObject| to handle the functions.
 * @param {Mock4JS.Mock} mockObject The mock to register callbacks against.
 * @param {function(new:Object)} mockClass Constructor for the mocked class.
 * @see registerMockGlobal
 */
Register all methods of  mockClass.prototype as overrides to global
functions of the same name as the method, using the proxy of the
|mockObject| to handle the functions.
@param {Mock4JS.Mock} mockObject The mock to register callbacks against.
@param {function(new:Object)} mockClass Constructor for the mocked class.
Register all methods of mockClass . prototype as overrides to global functions of the same name as the method using the proxy of the |mockObject| to handle the functions . @param { Mock4JS . Mock } mockObject The mock to register callbacks against . @param { function ( new : Object ) } mockClass Constructor for the mocked class .
function registerMockGlobals(mockObject, mockClass) {
  var mockProxy = mockObject.proxy();
  for (var func in mockClass.prototype) {
    if (typeof mockClass.prototype[func] === 'function')
      registerMockGlobal(func, mockProxy, mockProxy[func]);
  }
}
function registerMockGlobals ( mockObject , mockClass ) { var mockProxy = mockObject . proxy ( ) ; for ( var func in mockClass . prototype ) { if ( typeof mockClass . prototype [ func ] === 'function' ) registerMockGlobal ( func , mockProxy , mockProxy [ func ] ) ; } }
Register all methods of {@code mockClass.prototype} as overrides to global
 functions of the same name as the method, using the proxy of the
 |mockObject| to handle the functions.
Register all methods of { @code mockClass . prototype } as overrides to global functions of the same name as the method using the proxy of the |mockObject| to handle the functions .