original_string: public function newInstance()
      {
          /** @noinspection PhpUnusedLocalVariableInspection */
          $name = "{$this->getMockNamespaceName()}\\{$this->getMockName()}";
          /** @noinspection PhpUnusedLocalVariableInspection */
          $code = $this->generateCode();
          /** @var $reflect \ReflectionClass */
          $reflect = eval("$code return new \\ReflectionClass('$name');");
  
          try {
              return $reflect->newInstanceArgs($this->constructorArgs);
          } catch (ReflectionException $e) {
              return $reflect->newInstance();
          }
      }
code: public function newInstance()
      {
          /** @noinspection PhpUnusedLocalVariableInspection */
          $name = "{$this->getMockNamespaceName()}\\{$this->getMockName()}";
          /** @noinspection PhpUnusedLocalVariableInspection */
          $code = $this->generateCode();
          /** @var $reflect \ReflectionClass */
          $reflect = eval("$code return new \\ReflectionClass('$name');");
  
          try {
              return $reflect->newInstanceArgs($this->constructorArgs);
          } catch (ReflectionException $e) {
              return $reflect->newInstance();
          }
      }
code_tokens: public function newInstance ( ) { /** @noinspection PhpUnusedLocalVariableInspection */ $ name = "{$this->getMockNamespaceName()}\\{$this->getMockName()}" ; /** @noinspection PhpUnusedLocalVariableInspection */ $ code = $ this -> generateCode ( ) ; /** @var $reflect \ReflectionClass */ $ reflect = eval ( "$code return new \\ReflectionClass('$name');" ) ; try { return $ reflect -> newInstanceArgs ( $ this -> constructorArgs ) ; } catch ( ReflectionException $ e ) { return $ reflect -> newInstance ( ) ; } }
docstring: Create a new instance of the mocked class. There is no need to generate
  the code before invoking this.
  
  @return object
docstring_tokens: Create a new instance of the mocked class . There is no need to generate the code before invoking this .