@@ -24,7 +24,7 @@ protected function setUp()
2424 public function testData ()
2525 {
2626 $ token = $ this ->auth ->uploadToken ($ this ->bucketName );
27- list ($ ret , $ error ) = FormUploader::put ($ token , 'formput ' , 'hello world ' , $ this ->cfg , null , 'text/plain ' , null );
27+ list ($ ret , $ error ) = FormUploader::put ($ token , 'formput ' , 'hello world ' , $ this ->cfg , null , 'text/plain ' , null , false );
2828 $ this ->assertNull ($ error );
2929 $ this ->assertNotNull ($ ret ['hash ' ]);
3030 }
@@ -33,7 +33,7 @@ public function testData2()
3333 {
3434 $ upManager = new UploadManager ();
3535 $ token = $ this ->auth ->uploadToken ($ this ->bucketName );
36- list ($ ret , $ error ) = $ upManager ->put ($ token , 'formput ' , 'hello world ' , null , 'text/plain ' , null );
36+ list ($ ret , $ error ) = $ upManager ->put ($ token , 'formput ' , 'hello world ' , null , 'text/plain ' , null , false );
3737 $ this ->assertNull ($ error );
3838 $ this ->assertNotNull ($ ret ['hash ' ]);
3939 }
@@ -42,7 +42,7 @@ public function testFile()
4242 {
4343 $ key = 'formPutFile ' ;
4444 $ token = $ this ->auth ->uploadToken ($ this ->bucketName , $ key );
45- list ($ ret , $ error ) = FormUploader::putFile ($ token , $ key , __file__, $ this ->cfg , null , 'text/plain ' , null );
45+ list ($ ret , $ error ) = FormUploader::putFile ($ token , $ key , __file__, $ this ->cfg , null , 'text/plain ' , null , false );
4646 $ this ->assertNull ($ error );
4747 $ this ->assertNotNull ($ ret ['hash ' ]);
4848 }
@@ -52,7 +52,7 @@ public function testFile2()
5252 $ key = 'formPutFile ' ;
5353 $ token = $ this ->auth ->uploadToken ($ this ->bucketName , $ key );
5454 $ upManager = new UploadManager ();
55- list ($ ret , $ error ) = $ upManager ->putFile ($ token , $ key , __file__, null , 'text/plain ' , null );
55+ list ($ ret , $ error ) = $ upManager ->putFile ($ token , $ key , __file__, null , 'text/plain ' , null , false );
5656 $ this ->assertNull ($ error );
5757 $ this ->assertNotNull ($ ret ['hash ' ]);
5858 }
0 commit comments