public function testRequest()
 {
     $operatorName = getenv('UPYUN_OPERATOR_NAME');
     $operatorPwd = getenv('UPYUN_OPERATOR_PWD');
     $bucketName = getenv('UPYUN_FILE_BUCKET');
     $sugar = new \Sugar\AvPretreatment($operatorName, $operatorPwd);
     $data = array('bucket_name' => $bucketName, 'source' => '/video/20130514_190031.mp4', 'notify_url' => 'http://your.notifyurl.com/', 'tasks' => array(array('type' => 'hls', 'hls_time' => 6, 'bitrate' => '500', 'rotate' => 'auto', 'format' => 'mp4'), array('type' => 'thumbnail', 'thumb_single' => false, 'thumb_amount' => 100, 'format' => 'png')));
     $sugar->request($data);
     $ids = $sugar->getTaskIds();
     $this->assertEquals(2, count($ids));
 }