original_string: public function toArray()
      {
          $output = [];
          $output[] = sprintf(
              'HTTP/1.1 %s %s',
              $this->statusCode,
              self::codeToReason($this->statusCode)
          );
          foreach ($this->headers as $k => $v) {
              $output[] = sprintf('%s: %s', $k, $v);
          }
          $output[] = '';
          $output[] = $this->body;
  
          return $output;
      }
code: public function toArray()
      {
          $output = [];
          $output[] = sprintf(
              'HTTP/1.1 %s %s',
              $this->statusCode,
              self::codeToReason($this->statusCode)
          );
          foreach ($this->headers as $k => $v) {
              $output[] = sprintf('%s: %s', $k, $v);
          }
          $output[] = '';
          $output[] = $this->body;
  
          return $output;
      }
code_tokens: public function toArray ( ) { $ output = [ ] ; $ output [ ] = sprintf ( 'HTTP/1.1 %s %s' , $ this -> statusCode , self :: codeToReason ( $ this -> statusCode ) ) ; foreach ( $ this -> headers as $ k => $ v ) { $ output [ ] = sprintf ( '%s: %s' , $ k , $ v ) ; } $ output [ ] = '' ; $ output [ ] = $ this -> body ; return $ output ; }
docstring: Convert the full response to array for the purpose of unit testing.
docstring_tokens: Convert the full response to array for the purpose of unit testing .