@@ -132,8 +132,7 @@ public function testPut_mimetype() {
132
132
$ err = Qiniu_RS_Delete ($ this ->client , $ this ->bucket , $ key );
133
133
}
134
134
135
- public function testPut_exclusive ()
136
- {
135
+ public function testPut_exclusive () {
137
136
$ key = 'testPut_exclusive ' . getTid ();
138
137
$ scope = $ this ->bucket . ': ' . $ key ;
139
138
$ err = Qiniu_RS_Delete ($ this ->client , $ this ->bucket , $ key );
@@ -157,27 +156,7 @@ public function testPut_exclusive()
157
156
$ err = Qiniu_RS_Delete ($ this ->client , $ this ->bucket , $ key );
158
157
$ this ->assertNull ($ err );
159
158
}
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 );
164
159
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
- }
181
160
public function testPut_mimeLimit () {
182
161
$ key = 'testPut_mimeLimit ' . getTid ();
183
162
$ scope = $ this ->bucket . ': ' . $ key ;
0 commit comments