function makeMockFunctions(functionNames) {
  var MockClass = makeMockClass(functionNames);
  var mockFunctions = mock(MockClass);
  var mockProxy = mockFunctions.proxy();

  mockFunctions.functions_ = {};

  for (var func in MockClass.prototype) {
    if (typeof MockClass.prototype[func] === 'function')
      mockFunctions.functions_[func] = mockProxy[func].bind(mockProxy);
  }

  mockFunctions.functions = function() {
    return this.functions_;
  };

  return mockFunctions;
}
/**
 * Create a new class to handle |functionNames|, add method 'functions()'
 * that returns a container of standalone functions based on the mock class
 * members, and return it.
 * @return {Mock} Mock handler class.
 */
Create a new class to handle |functionNames|, add method 'functions()'
that returns a container of standalone functions based on the mock class
members, and return it.
@return {Mock} Mock handler class.
Create a new class to handle |functionNames| add method ' functions () ' that returns a container of standalone functions based on the mock class members and return it . @return { Mock } Mock handler class .
function makeMockFunctions(functionNames) {
  var MockClass = makeMockClass(functionNames);
  var mockFunctions = mock(MockClass);
  var mockProxy = mockFunctions.proxy();
  mockFunctions.functions_ = {};
  for (var func in MockClass.prototype) {
    if (typeof MockClass.prototype[func] === 'function')
      mockFunctions.functions_[func] = mockProxy[func].bind(mockProxy);
  }
  mockFunctions.functions = function() {
    return this.functions_;
  };
  return mockFunctions;
}
function makeMockFunctions ( functionNames ) { var MockClass = makeMockClass ( functionNames ) ; var mockFunctions = mock ( MockClass ) ; var mockProxy = mockFunctions . proxy ( ) ; mockFunctions . functions_ = { } ; for ( var func in MockClass . prototype ) { if ( typeof MockClass . prototype [ func ] === 'function' ) mockFunctions . functions_ [ func ] = mockProxy [ func ] . bind ( mockProxy ) ; } mockFunctions . functions = function ( ) { return this . functions_ ; } ; return mockFunctions ; }
Create a new class to handle |functionNames|, add method 'functions()'
 that returns a container of standalone functions based on the mock class
 members, and return it.
Create a new class to handle |functionNames| add method ' functions () ' that returns a container of standalone functions based on the mock class members and return it .