public function testPutFileHandle()
{
$png = $this->create_png();
$tmp_file = $this->create_tmp_file($png);
$this->curl->setOpt(CURLOPT_PUT, TRUE);
$this->curl->setOpt(CURLOPT_INFILE, $tmp_file);
$this->curl->setOpt(CURLOPT_INFILESIZE, strlen($png));
$this->curl->put(self::TEST_URL . '/server.php', array('test' => 'put_file_handle'));
fclose($tmp_file);
$this->assertTrue($this->curl->response === 'image/png');
}