original_string: protected function doMatch($actual)
      {
          if (!is_string($actual)) {
              throw new \InvalidArgumentException('PatternMatcher expects a string');
          }
  
          return (bool) preg_match($this->expected, $actual);
      }
code: protected function doMatch($actual)
      {
          if (!is_string($actual)) {
              throw new \InvalidArgumentException('PatternMatcher expects a string');
          }
  
          return (bool) preg_match($this->expected, $actual);
      }
code_tokens: protected function doMatch ( $ actual ) { if ( ! is_string ( $ actual ) ) { throw new \ InvalidArgumentException ( 'PatternMatcher expects a string' ) ; } return ( bool ) preg_match ( $ this -> expected , $ actual ) ; }
docstring: Match the actual value against a regular expression.
  
  @param $actual
  @return mixed
docstring_tokens: Match the actual value against a regular expression .