code: protected function createCodeForNewMethod($methods)
      {
          $code = '';
          foreach ($methods as $method) {
              if ($this->isConstructorOrDeconstructor($method)) {
                  continue;
              }
              $mock_reflection = new SimpleReflection($this->mock_base);
              if (in_array($method, $mock_reflection->getMethods())) {
                  continue;
              }
              $code .= '    ' . $this->reflection->getSignature($method) . " {\n";
              $code .= "        return \$this->mock->invoke(\"$method\", func_get_args());\n";
              $code .= "    }\n";
          }
  
          return $code;
      }
docs: Creates code within a class to generate a newmethods.
  All methods call the invoke() handler on the internal
  mock with the method name and the arguments in an array.
  
  @param array $methods Additional methods.