encodeString() public method

Encode a given string to produce an encoded string.
public encodeString ( string $string, integer $firstLineOffset, integer $maxLineLength ) : string
$string string
$firstLineOffset integer if first line needs to be shorter
$maxLineLength integer 0 indicates the default length for this encoding
return string
 public function testCharsetChangeNotImplemented()
 {
     $this->_encoder->charsetChanged('utf-8');
     $this->expectException(new RuntimeException('Charset "charset" not supported. NativeQpContentEncoder only supports "utf-8"'));
     $this->_encoder->charsetChanged('charset');
     $this->_encoder->encodeString('foo');
 }
 /**
  * @expectedException RuntimeException
  */
 public function testCharsetChangeNotImplemented()
 {
     $this->_encoder->charsetChanged('utf-8');
     $this->_encoder->charsetChanged('charset');
     $this->_encoder->encodeString('foo');
 }