@@ -187,7 +187,6 @@ public function testDownloadToStream($input)
187
187
$ id = $ this ->bucket ->uploadFromStream ('filename ' , $ this ->createStream ($ input ));
188
188
$ destination = $ this ->createStream ();
189
189
$ this ->bucket ->downloadToStream ($ id , $ destination );
190
- rewind ($ destination );
191
190
192
191
$ this ->assertStreamContents ($ input , $ destination );
193
192
}
@@ -222,37 +221,30 @@ public function testDownloadToStreamByName()
222
221
223
222
$ destination = $ this ->createStream ();
224
223
$ this ->bucket ->downloadToStreamByName ('filename ' , $ destination );
225
- rewind ($ destination );
226
224
$ this ->assertStreamContents ('baz ' , $ destination );
227
225
228
226
$ destination = $ this ->createStream ();
229
227
$ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => -3 ]);
230
- rewind ($ destination );
231
228
$ this ->assertStreamContents ('foo ' , $ destination );
232
229
233
230
$ destination = $ this ->createStream ();
234
231
$ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => -2 ]);
235
- rewind ($ destination );
236
232
$ this ->assertStreamContents ('bar ' , $ destination );
237
233
238
234
$ destination = $ this ->createStream ();
239
235
$ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => -1 ]);
240
- rewind ($ destination );
241
236
$ this ->assertStreamContents ('baz ' , $ destination );
242
237
243
238
$ destination = $ this ->createStream ();
244
239
$ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => 0 ]);
245
- rewind ($ destination );
246
240
$ this ->assertStreamContents ('foo ' , $ destination );
247
241
248
242
$ destination = $ this ->createStream ();
249
243
$ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => 1 ]);
250
- rewind ($ destination );
251
244
$ this ->assertStreamContents ('bar ' , $ destination );
252
245
253
246
$ destination = $ this ->createStream ();
254
247
$ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => 2 ]);
255
- rewind ($ destination );
256
248
$ this ->assertStreamContents ('baz ' , $ destination );
257
249
}
258
250
0 commit comments