code: public static function generate($class, $mock_class = false, $methods = false)
      {
          $generator = new MockGenerator($class, $mock_class);
  
          return $generator->generateSubclass($methods);
      }
docs: Clones the interface of a class and creates a mock version
  that can have return values and expectations set.
  
  @param string $class      Class to clone.
  @param string $mock_class New class name. Default is the old name with "Mock" prepended.
  @param array  $methods    Additional methods to add beyond
  those in the cloned class. Use this
  to emulate the dynamic addition of
  methods in the cloned class or when
  the class hasn't been written yet.sta