|
@@ -24,7 +24,7 @@ class FormUpTest extends \PHPUnit_Framework_TestCase
|
|
|
public function testData()
|
|
|
{
|
|
|
$token = $this->auth->uploadToken($this->bucketName);
|
|
|
- list($ret, $error) = FormUploader::put($token, 'formput', 'hello world', $this->cfg, null, 'text/plain', true);
|
|
|
+ list($ret, $error) = FormUploader::put($token, 'formput', 'hello world', $this->cfg, null, 'text/plain', null);
|
|
|
$this->assertNull($error);
|
|
|
$this->assertNotNull($ret['hash']);
|
|
|
}
|
|
@@ -33,7 +33,7 @@ class FormUpTest extends \PHPUnit_Framework_TestCase
|
|
|
{
|
|
|
$upManager = new UploadManager();
|
|
|
$token = $this->auth->uploadToken($this->bucketName);
|
|
|
- list($ret, $error) = $upManager->put($token, 'formput', 'hello world', null, 'text/plain', true);
|
|
|
+ list($ret, $error) = $upManager->put($token, 'formput', 'hello world', null, 'text/plain', null);
|
|
|
$this->assertNull($error);
|
|
|
$this->assertNotNull($ret['hash']);
|
|
|
}
|
|
@@ -42,7 +42,7 @@ class FormUpTest extends \PHPUnit_Framework_TestCase
|
|
|
{
|
|
|
$key = 'formPutFile';
|
|
|
$token = $this->auth->uploadToken($this->bucketName, $key);
|
|
|
- list($ret, $error) = FormUploader::putFile($token, $key, __file__, $this->cfg, null, 'text/plain', true);
|
|
|
+ list($ret, $error) = FormUploader::putFile($token, $key, __file__, $this->cfg, null, 'text/plain', null);
|
|
|
$this->assertNull($error);
|
|
|
$this->assertNotNull($ret['hash']);
|
|
|
}
|
|
@@ -52,7 +52,7 @@ class FormUpTest extends \PHPUnit_Framework_TestCase
|
|
|
$key = 'formPutFile';
|
|
|
$token = $this->auth->uploadToken($this->bucketName, $key);
|
|
|
$upManager = new UploadManager();
|
|
|
- list($ret, $error) = $upManager->putFile($token, $key, __file__, null, 'text/plain', true);
|
|
|
+ list($ret, $error) = $upManager->putFile($token, $key, __file__, null, 'text/plain', null);
|
|
|
$this->assertNull($error);
|
|
|
$this->assertNotNull($ret['hash']);
|
|
|
}
|