@@ -132,8 +132,7 @@ public function testPut_mimetype() {
132132 $ err = Qiniu_RS_Delete ($ this ->client , $ this ->bucket , $ key );
133133 }
134134
135- public function testPut_exclusive ()
136- {
135+ public function testPut_exclusive () {
137136 $ key = 'testPut_exclusive ' . getTid ();
138137 $ scope = $ this ->bucket . ': ' . $ key ;
139138 $ err = Qiniu_RS_Delete ($ this ->client , $ this ->bucket , $ key );
@@ -157,27 +156,7 @@ public function testPut_exclusive()
157156 $ err = Qiniu_RS_Delete ($ this ->client , $ this ->bucket , $ key );
158157 $ this ->assertNull ($ err );
159158 }
160- public function testPut_transform () {
161- $ key = 'testPut_transform ' . getTid ();
162- $ scope = $ this ->bucket . ': ' . $ key ;
163- $ err = Qiniu_RS_Delete ($ this ->client , $ this ->bucket , $ key );
164159
165- $ putPolicy = new Qiniu_RS_PutPolicy ($ scope );
166- $ putPolicy ->Transform = "imageMogr2/format/png " ;
167- $ putPolicy ->ReturnBody = '{"key": $(key), "hash": $(etag), "mimeType":$(mimeType)} ' ;
168- $ upToken = $ putPolicy ->Token (null );
169-
170- list ($ ret , $ err ) = Qiniu_PutFile ($ upToken , $ key , __file__, null );
171- $ this ->assertNull ($ ret );
172- $ this ->assertEquals ($ err ->Err , "fop fail or timeout " );
173- var_dump ($ err );
174-
175- $ pic_path = "../docs/gist/logo.jpg " ;
176- list ($ ret , $ err ) = Qiniu_PutFile ($ upToken , $ key , $ pic_path , null );
177- $ this ->assertNull ($ err );
178- $ this ->assertEquals ($ ret ["mimeType " ], "image/png " );
179- var_dump ($ ret );
180- }
181160 public function testPut_mimeLimit () {
182161 $ key = 'testPut_mimeLimit ' . getTid ();
183162 $ scope = $ this ->bucket . ': ' . $ key ;
0 commit comments