public function testEncoding()
{
$stream = new Curl($this->_testConfig);
$result = $stream->open();
$stream->encoding('UTF-8');
$result = $stream->resource();
$this->assertInternalType('resource', $result);
$stream = new Curl($this->_testConfig + array('encoding' => 'UTF-8'));
$result = $stream->open();
$result = $stream->resource();
$this->assertInternalType('resource', $result);
}