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
}
public function testBigInsert()
{
$testPath= __DIR__."/BigInsertTest.txt";
$testStream = fopen($testPath, "r");
$id = $this->bucket->uploadFromStream("BigInsertTest", $testStream);
for ($tmpStream = tmpfile(), $i = 0; $i < 20; $i++) {
fwrite($tmpStream, str_repeat('a', 1048576));
}
fseek($tmpStream, 0);
$this->bucket->uploadFromStream("BigInsertTest", $tmpStream);
fclose($tmpStream);
}
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