/**
  * Parse the stream.
  *
  * @param StreamInterface $stream
  * @param                 $string
  */
 protected function parseStream(StreamInterface $stream, &$string)
 {
     foreach ($stream->getAttributes() as $key => $value) {
         if (is_string($value)) {
             $value = addslashes($value);
         }
         $string .= "\n'{$key}' => '{$value}',";
     }
 }