charsetChanged() public method

Notify this observer that the entity's charset has changed.
public charsetChanged ( string $charset )
$charset 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');
 }