original_string: public function mock($pattern, $ifNotExist = false)
      {
          if ($ifNotExist) {
              $this->_optionalMockPatterns[] = $pattern;
          } else {
              $this->_mockPatterns[] = $pattern;
          }
  
          return $this;
      }
code: public function mock($pattern, $ifNotExist = false)
      {
          if ($ifNotExist) {
              $this->_optionalMockPatterns[] = $pattern;
          } else {
              $this->_mockPatterns[] = $pattern;
          }
  
          return $this;
      }
code_tokens: public function mock ( $ pattern , $ ifNotExist = false ) { if ( $ ifNotExist ) { $ this -> _optionalMockPatterns [ ] = $ pattern ; } else { $ this -> _mockPatterns [ ] = $ pattern ; } return $ this ; }
docstring: Mock any class matching the given pattern
  
  e.g.
  mock('Mage*')
  mock('Mage*Collection')
  mock('Foo\Bar\*')
  
  @param string $pattern
  @param bool $ifNotExist
  
  @return $this
docstring_tokens: Mock any class matching the given pattern