Skip to content

Commit 8fa9aab

Browse files
committed
Remove unnecessary StreamWrapper registration in SpecificationTests
1 parent c0757aa commit 8fa9aab

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/GridFS/SpecificationTests.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ public function uploadCommand($args)
217217
function downloadCommand($args)
218218
{
219219
$args = $this->fixTypes($args, false);
220-
$streamWrapper = new \MongoDB\GridFS\StreamWrapper();
221-
$streamWrapper->register($this->manager);
222220
$stream = fopen('php://temp', 'w+');
223221
$this->bucket->downloadToStream($args['id'], $stream);
224222
rewind($stream);
@@ -234,8 +232,6 @@ function deleteCommand($args)
234232
function download_by_nameCommand($args)
235233
{
236234
$args = $this->fixTypes($args, false);
237-
$streamWrapper = new \MongoDB\GridFS\StreamWrapper();
238-
$streamWrapper->register($this->manager);
239235
$stream = fopen('php://temp', 'w+');
240236
if(isset($args['options']['revision'])) {
241237
$this->bucket->downloadToStreamByName($args['filename'], $stream, $args['options']['revision']);

0 commit comments

Comments
 (0)