@@ -187,7 +187,6 @@ public function testDownloadToStream($input)
187187 $ id = $ this ->bucket ->uploadFromStream ('filename ' , $ this ->createStream ($ input ));
188188 $ destination = $ this ->createStream ();
189189 $ this ->bucket ->downloadToStream ($ id , $ destination );
190- rewind ($ destination );
191190
192191 $ this ->assertStreamContents ($ input , $ destination );
193192 }
@@ -222,37 +221,30 @@ public function testDownloadToStreamByName()
222221
223222 $ destination = $ this ->createStream ();
224223 $ this ->bucket ->downloadToStreamByName ('filename ' , $ destination );
225- rewind ($ destination );
226224 $ this ->assertStreamContents ('baz ' , $ destination );
227225
228226 $ destination = $ this ->createStream ();
229227 $ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => -3 ]);
230- rewind ($ destination );
231228 $ this ->assertStreamContents ('foo ' , $ destination );
232229
233230 $ destination = $ this ->createStream ();
234231 $ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => -2 ]);
235- rewind ($ destination );
236232 $ this ->assertStreamContents ('bar ' , $ destination );
237233
238234 $ destination = $ this ->createStream ();
239235 $ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => -1 ]);
240- rewind ($ destination );
241236 $ this ->assertStreamContents ('baz ' , $ destination );
242237
243238 $ destination = $ this ->createStream ();
244239 $ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => 0 ]);
245- rewind ($ destination );
246240 $ this ->assertStreamContents ('foo ' , $ destination );
247241
248242 $ destination = $ this ->createStream ();
249243 $ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => 1 ]);
250- rewind ($ destination );
251244 $ this ->assertStreamContents ('bar ' , $ destination );
252245
253246 $ destination = $ this ->createStream ();
254247 $ this ->bucket ->downloadToStreamByName ('filename ' , $ destination , ['revision ' => 2 ]);
255- rewind ($ destination );
256248 $ this ->assertStreamContents ('baz ' , $ destination );
257249 }
258250
0 commit comments