Commit 9089cd9a authored by Jeremy Mikola's avatar Jeremy Mikola

Replace large GridFS fixture with generated temp file

parent 5f6c1fb6
This diff is collapsed.
...@@ -234,9 +234,13 @@ class BucketFunctionalTest extends FunctionalTestCase ...@@ -234,9 +234,13 @@ class BucketFunctionalTest extends FunctionalTestCase
} }
public function testBigInsert() public function testBigInsert()
{ {
$testPath= __DIR__."/BigInsertTest.txt"; for ($tmpStream = tmpfile(), $i = 0; $i < 20; $i++) {
$testStream = fopen($testPath, "r"); fwrite($tmpStream, str_repeat('a', 1048576));
$id = $this->bucket->uploadFromStream("BigInsertTest", $testStream); }
fseek($tmpStream, 0);
$this->bucket->uploadFromStream("BigInsertTest", $tmpStream);
fclose($tmpStream);
} }
public function testGetIdFromStream() public function testGetIdFromStream()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment